Commit graph

96 commits

Author SHA1 Message Date
Sean Arietta
b059cdf02c Re-arranged the call order of connecting to avoid interrupted connections 2014-12-25 14:06:32 -08:00
Sean Arietta
dc8e867741 Added tests that verify restart functionality is working as expected 2014-12-23 21:39:48 -08:00
Sean Arietta
f06bf8e736 Fixed a typo bug. Also added better disconnect handling in the websockets send method 2014-12-23 21:39:26 -08:00
Sean Arietta
a1f37e8e60 Added an event queue so that emitted events that failed can be automatically retried upon reconnection. Also fixed a potential infinite loop bug wrt reconnecting automatically 2014-12-23 21:38:42 -08:00
Sean Arietta
6932d4c2d1 Added connection error handling for all send / recv related methods so that we can reconnect on all connection errors 2014-12-23 19:15:50 -08:00
Sean Arietta
455890a700 Added more documentation 2014-12-23 02:37:53 -08:00
Sean Arietta
2361706c4e Updated tests slightly for newer client implementation. Tests on 'message'-like methods have been removed as the newer paradigm considers message and events the same. Timeouts on the non-websocket transports have been lowered to enable faster tests. Explicit transports have been removed from constructors since that has also been removed from the code. 2014-12-23 02:24:52 -08:00
Sean Arietta
6f8e76adfd Added check to parser encoder to automatically encode json if the message data is not a string 2014-12-23 02:20:26 -08:00
Sean Arietta
66e563acc3 Updated implementation to allow callbacks and arg handling that is consistent with reference javascript implementation. 2014-12-23 02:19:41 -08:00
Sean Arietta
bdb92f8da6 Added 4 space indents to server_tests.js. Also added less ambiguous method definitions for multiple arg methods 2014-12-23 02:18:33 -08:00
Sean Arietta
f4a96c72d0 Updates to get XHR polling working correctly. Mostly encode/decode issues. 2014-12-22 22:08:15 -08:00
Sean Arietta
2d1257bf8f Client now attempts to reconnect forever on server disconnect and correctly reconnects 2014-12-22 21:46:05 -08:00
Sean Arietta
5c1d38ac86 Implemented ack callbacks 2014-12-22 18:39:58 -08:00
Sean Arietta
16c64437d3 Medium-sized refactor. Converted all methods away from old 'code' paradigm to use the PacketType and MessageType enums directly 2014-12-22 17:43:42 -08:00
Sean Arietta
07a5cc4c63 Events are working on a per-namespace basis now 2014-12-22 16:49:16 -08:00
Sean Arietta
57971b5f71 Added support for websockets via upgrade paradigm. Also added support for series of packets in responses rather than assuming single packets each time. Added support for all message fields in socket.io protocol 2014-12-22 16:29:58 -08:00
Sean Arietta
d64e947aac Checkpoint for updates. Namespaces are working. Events are working. Reconnects working. Disconnects working. Need to implemenet ACKs / callbacks, WebSocket transport, and JSONP transport 2014-12-22 00:36:09 -08:00
Sean Arietta
37bd6786d7 Checkpoint 2014-12-20 16:28:22 -08:00
Roy Hyunjin Han
a0b061cbdc Use single quotes 2014-11-27 02:14:51 -05:00
Roy Hyunjin Han
9611d5d107 Merge pull request #57 from jorgen-k/master
Fix SSL timeout error thansk to jorgen-k
2014-11-26 22:43:16 -05:00
Roy Hyunjin Han
64d1c010a9 Update __init__.py 2014-11-18 10:42:57 -05:00
Roy Hyunjin Han
1c2a313002 Merge pull request #58 from antonzy/master
Working migration to 3.4.1
2014-11-18 10:38:32 -05:00
jorgen
b0d67b98af Version bump 2014-09-23 06:27:27 +02:00
antonzy
e108c8a12a Migrate to 3.4 2014-09-22 17:12:08 +03:00
antonzy
9a80988e26 Migrate to 3.4 2014-09-22 17:08:44 +03:00
jorgen
557edb8620 SSL Timeout error 2014-09-15 21:39:11 +02:00
Roy Hyunjin Han
2e2496cd4c Merge pull request #32 from Vodalys/reconnect_namespaces
Automatically reconnect transport to existing namespaces
2013-11-21 08:00:34 -08:00
Frédéric Sureau
9c1766b806 Automatically reconnect transport to existing namespaces 2013-11-21 16:20:45 +01:00
Roy Hyunjin Han
68d9639a56 Removed extra debugging statements v0.5.3 2013-11-20 08:17:44 -08:00
Roy Hyunjin Han
3c73bc9b55 Added TODO 2013-11-20 08:16:03 -08:00
Roy Hyunjin Han
38e72dc304 Fixed calling on_connect() so that it is called only once; fixes #31 2013-11-20 08:07:12 -08:00
Roy Hyunjin Han
5ccb32f338 Exit the loop if the client wants to disconnect; fixes #30 2013-11-18 10:43:31 -08:00
Roy Hyunjin Han
1506e22458 Set heartbeat_interval to half of the heartbeat_timeout 2013-11-18 09:45:09 -08:00
Roy Hyunjin Han
e7529e5487 Replaced secure=True with host='https://example.com' v0.5.2 2013-11-17 13:40:36 -08:00
Roy Hyunjin Han
a60e19fb54 Merge pull request #28 from Burstaholic/master
Always send heartbeats to prevent server timeout; fixes #29
2013-11-17 12:46:29 -08:00
Travis Odom
43261b2347 Always send heartbeats to prevent server timeout 2013-11-12 19:11:38 -06:00
Roy Hyunjin Han
579d0493d8 Added instructions for debugging information 2013-11-12 09:51:05 -08:00
Roy Hyunjin Han
1a16e98d32 Updated README 2013-11-07 06:55:37 -08:00
Roy Hyunjin Han
81c6d513a5 Updated CHANGES v0.5.1 2013-11-06 18:35:09 -08:00
Roy Hyunjin Han
e75fbeb2e3 Added test to cover #25 2013-11-06 18:29:26 -08:00
Roy Hyunjin Han
65c4160c8e Fixes #25 2013-11-06 10:26:49 -08:00
Roy Hyunjin Han
13b482e075 Fixes #24 2013-11-06 09:57:28 -08:00
Roy Hyunjin Han
1a3e1270dd Raw unicode literals are not supported in Python3 2013-11-03 18:28:57 -08:00
Roy Hyunjin Han
2c381142d4 Updated CHANGES v0.5 2013-11-03 17:50:03 -08:00
Roy Hyunjin Han
7c18bc5dfc Added credits 2013-11-03 17:35:32 -08:00
Roy Hyunjin Han
be05a0699f Updated README 2013-11-03 17:23:09 -08:00
Roy Hyunjin Han
0751dc3484 Fixed _JSONP_PollingTransport 2013-11-03 17:16:59 -08:00
Roy Hyunjin Han
28cfadc593 Fixed _XHR_PollingTransport 2013-11-03 15:03:34 -08:00
Roy Hyunjin Han
018e566049 Debugging alternate transports 2013-11-03 11:59:54 -08:00
Roy Hyunjin Han
096d41c072 Fixes #23 #21 #20 #18 2013-11-03 01:01:29 -08:00