Commit Graph

229 Commits

Author SHA1 Message Date
Lukas Schmidt 198f24c684 clean code 2015-09-18 18:09:35 +02:00
Erik 0233bce881 tweaks to closing 2015-09-18 09:27:14 -04:00
Erik 9a05f6043b tweaks to once 2015-09-17 23:52:23 -04:00
Kevin Jose Martin a9b4193fe4 Fix "Variable 'handler' captured by a closure before being initialized" error 2015-09-17 22:06:12 -04:00
Kevin Jose Martin aaaf9dc451 Filter against SocketEventHandler#id 2015-09-17 21:49:18 -04:00
Kevin Jose Martin fe8469cfc6 Add SocketEventHandler#id to filter against 2015-09-17 21:48:09 -04:00
Kevin Jose Martin f5c3a2cac9 Add strict equality and execute "callback" as non-optional 2015-09-17 21:08:37 -04:00
Kevin Jose Martin 7d26bd3ee8 Fix type declarations 2015-09-17 21:00:56 -04:00
Kevin Jose Martin 136847fd77 Fix "Variable used within its own initial value" error 2015-09-17 20:41:34 -04:00
Kevin Jose Martin 9b3f84dcd0 Remove type declarations 2015-09-17 20:33:36 -04:00
Kevin Jose Martin a72f96759e Adds SocketIOClient#once(event, callback)
When the specified event is emitted, the handler deregisters itself.
2015-09-17 18:19:49 -04:00
Erik ba5638a109 Revert "tweak to objective-c api"
This reverts commit d0a57ca353.
2015-09-17 09:09:02 -04:00
Erik 2f2bd49045 fix socketio/socket.io-client-swift#181 2015-09-17 09:06:09 -04:00
Erik d0a57ca353 tweak to objective-c api 2015-09-16 11:16:12 -04:00
Erik f818d64405 fix socketio/socket.io-client-swift#177 2015-09-14 15:40:13 -04:00
Erik 60e0142955 further tweaks to stringreader 2015-09-13 14:05:10 -04:00
Erik e84acb1471 only need to get the substring once 2015-09-13 13:56:51 -04:00
Erik 8044d6fc1c don't need to call predacessor 2015-09-13 13:46:36 -04:00
Erik e3ff1f434b add license 2015-09-13 13:39:51 -04:00
Erik ca67e9e47e use pure swift 2015-09-13 13:37:43 -04:00
Erik f5f2a15133 tweaks to string reading 2015-09-12 21:26:09 -04:00
Erik 2e9232365d remove unused property 2015-09-12 17:14:30 -04:00
Erik a91fc638f2 remove old log message 2015-09-12 17:12:12 -04:00
Erik 0e0d47b6ed Refactor engine polling. Change SocketGenericParser to SocketStringReader 2015-09-12 17:04:34 -04:00
NachoSoto c6997f32dd Fixed indentation 2015-09-11 05:52:17 +00:00
NachoSoto e955699b21 SSLCert is now private 2015-09-11 05:43:16 +00:00
NachoSoto 2bb7360918 WebSockets: removed unnecessary weaks and simplified code 2015-09-11 05:42:55 +00:00
NachoSoto d5b9afd28d SwiftRegex does not need to be exposed 2015-09-11 05:39:24 +00:00
NachoSoto adb3650609 SwiftRegex: failing with fatalError 2015-09-11 05:38:08 +00:00
NachoSoto dc50af1505 SwiftRegex: changed static method to static to avoid unnecessary dynamic dispatching 2015-09-11 05:37:58 +00:00
NachoSoto bad0d4b419 SocketPacket: using Logger instead of print 2015-09-11 05:36:05 +00:00
NachoSoto b8cfdc8fd2 SocketIOClient: simplified conditional 2015-09-11 05:33:40 +00:00
NachoSoto a43548e203 SocketIOClient: remove unnecessary optional 2015-09-11 05:33:01 +00:00
NachoSoto 2bc72e1975 SocketIOClient: removed unnecessary weak self 2015-09-11 05:31:41 +00:00
NachoSoto 1739afa670 SocketIOClient: added assertion to check timeoutAfter is not negative 2015-09-11 05:28:28 +00:00
NachoSoto 40d76cdbeb SocketIOClient: making a few fields private 2015-09-11 05:26:56 +00:00
NachoSoto 4f2040fbfd Simplified SocketEngine.swift 2015-09-11 05:25:01 +00:00
Erik d2ae3705ff Merge branch 'swift-2' of https://github.com/socketio/socket.io-client-swift into swift-2
* 'swift-2' of https://github.com/socketio/socket.io-client-swift:
  Use swift 2 guard statement
  Fix use-after-release issue in WebSocket
2015-09-10 16:33:11 -04:00
Erik a634f5bacc simplify socketengine 2015-09-10 16:32:57 -04:00
Hank Bao 713ce46e3b Use swift 2 guard statement 2015-09-09 22:40:09 +08:00
Hank Bao 44508a5193 Fix use-after-release issue in WebSocket 2015-09-09 22:33:35 +08:00
Erik 8a911a871e Fix socketio/socket.io-client-swift#166 2015-09-08 09:10:37 -04:00
Erik d8c8b4941e fix case with nsdata in json 2015-09-08 09:00:57 -04:00
Erik 520a765c22 fix file location 2015-09-08 08:36:35 -04:00
Erik ec200e78bb Merge branch 'swift-2' of https://github.com/socketio/socket.io-client-swift into swift-2
* 'swift-2' of https://github.com/socketio/socket.io-client-swift:
  use optionals instead of try/catch
  clean up code style
  disable locale test
  clean up using guard
  fix join namespace parse
  refactor, make use of try catch
  complete use of parser
  using parser for namespace
  use new parser for binary
  clean up code
  refactor clean up code
  socket parser Test
  SocketAckManagerTest
2015-09-07 16:53:14 -04:00
Erik 70b06a2248 small tweak 2015-09-07 16:53:10 -04:00
Erik Little 6cdacefdec Merge pull request #164 from lightsprint09/more-tests
More tests
2015-09-07 16:52:22 -04:00
Lukas Schmidt 222f622d3a use optionals instead of try/catch 2015-09-07 21:29:51 +02:00
Lukas Schmidt 91cc683b5b clean up code style 2015-09-07 20:25:13 +02:00
Lukas Schmidt 568b2ae1bc clean up using guard 2015-09-07 19:28:19 +02:00