31 Commits

Author SHA1 Message Date
Erik
711ce8d8c4 fixes. add better objective-c support 2015-03-11 17:33:21 -04:00
Erik
8365ded215 Use starscream for websockets. Execute emitAcks on the main queue. 2015-03-11 13:33:54 -04:00
Erik
6399df4c33 tweaks 2015-03-06 21:17:26 -05:00
Erik
ae28a02163 Use a ephemeral NSURLSession for polling, because NSURLConnection.sendAsnc.. seems to either leak memory, or cache 2015-03-06 18:24:06 -05:00
Erik
41c168a29a Fixes. Add onAny method 2015-03-06 16:29:13 -05:00
Erik
44bff82a43 better reconnects 2015-03-06 12:13:00 -05:00
Erik
851ac7635a Fix connection issues, binary data in nested data structures, some race conditions, reconnect needs to be redone 2015-03-05 22:06:17 -05:00
Erik
166b2b515b make sure we're polling 2015-03-05 15:19:17 -05:00
Erik
59a5e1928c clean up 2015-03-05 15:16:34 -05:00
Erik
d35934c79d handle binary data better 2015-03-05 14:37:00 -05:00
Erik
c85a1def87 tell client about failed ws 2015-03-05 13:45:25 -05:00
Erik
5ed2688c9e better handle when the server closes the connection (polling) 2015-03-05 12:55:09 -05:00
Erik
296802fddb better handle closes 2015-03-05 11:06:11 -05:00
Erik
829992fcef send disconnect on polling close 2015-03-04 23:39:11 -05:00
Erik
543a3c8f91 add toggle for polling only 2015-03-04 23:15:11 -05:00
Erik
68a0f8d9ac gotta go fast 2015-03-04 22:53:57 -05:00
Erik
63aed1ce91 tweaks 2015-03-04 21:50:23 -05:00
Erik
1f1ba60574 fix namespaces 2015-03-04 21:20:52 -05:00
Erik
b295561dcc non-namespace polling seems to work, needs more testing 2015-03-04 20:22:39 -05:00
Erik
346edc7b53 Better handle moving between polling and websockets. Sending binary on polling still bork 2015-03-04 19:52:20 -05:00
Erik
4925c00c12 work on xhr polling sending 2015-03-04 18:02:42 -05:00
Erik
2205cfb7d9 fix EXE_BAD_ACCESS when compiling with -O with swift 1.1 2015-03-04 15:52:18 -05:00
Erik
2e80b9405d Fixes. Sending doesn't work on polling, namespaces broken 2015-03-04 15:13:41 -05:00
Erik
3088bd88e6 handle binary 2015-03-04 14:06:20 -05:00
Erik
574e9d5f7e start work on parsing polling messages 2015-03-04 13:27:55 -05:00
Erik
7f22dc8f42 send connect event on polling connect 2015-03-04 10:04:26 -05:00
Erik
6e4aa4eee4 work on polling heartbeat 2015-03-04 09:12:51 -05:00
Erik
16fd043632 fix reconnect 2015-03-03 22:39:37 -05:00
Erik
7e0549611f move more things to socketengine. reconnecting broken 2015-03-03 22:13:28 -05:00
Erik
5cc42be709 start moving websocket stuff to socketengine 2015-03-03 21:38:11 -05:00
Erik
8bebc3c159 start work on adding polling 2015-03-03 20:53:57 -05:00