Commit graph

235 commits

Author SHA1 Message Date
Roy Hyunjin Han
c1e4924717 Merge pull request #37 from leth/patch-3
Catch AttributeError in client connected check
2015-01-09 22:15:36 +09:00
Roy Hyunjin Han
ee425459bd Merge pull request #39 from bradjc/on-reconnect
Make on_reconnect callback functional
2015-01-09 22:14:58 +09:00
Roy Hyunjin Han
01f166db1e Merge pull request #47 from Vodalys/unicode
Support unicode data in emit
2015-01-09 22:13:13 +09:00
Roy Hyunjin Han
6661d8be0e Merge branch 'wuurrd-master' 2015-01-09 22:11:54 +09:00
Roy Hyunjin Han
315b795a91 Merge conflicts 2015-01-09 22:11:45 +09:00
Roy Hyunjin Han
698d083665 Merge pull request #60 from valhallasw/master
Python 3: use urllib.parse.urlparse
2015-01-09 20:35:58 +09:00
Roy Hyunjin Han
88bf4c0bcc Merge branch 'leth-patch-1' 2015-01-09 20:23:35 +09:00
Roy Hyunjin Han
b394c8a55a Merge contribution from leth 2015-01-09 20:23:31 +09:00
Roy Hyunjin Han
5f27c22681 Merge remote-tracking branch 'origin/master' into 0.6.0 2015-01-09 20:08:41 +09:00
Roy Hyunjin Han
cdfbe55203 Merge pull request #55 from stackmagic/allow-nonstandart-resource
allow to pass in a different resource than just 'socket.io'
2015-01-09 20:07:54 +09:00
Roy Hyunjin Han
d73d6145f3 Merge pull request from drewhutchinson 2015-01-09 20:02:52 +09:00
Sean Arietta
2a43420e1b Added scripts to start and kill test server 2015-01-07 13:14:19 -08:00
Merlijn van Deen
f44485d3e2 Python 3: use urllib.parse.urlparse 2014-12-30 17:37:37 +01:00
Sean Arietta
ef64649a2a Added support for forcing websocket connections if available. Also fixed a small bug that seemed to be causing a race condition on first connections due to a failure to consume a packet on opening the default namespace 2014-12-25 23:27:19 -08:00
Sean Arietta
5af21af575 Small updates that fix a couple of connection issues 2014-12-25 22:52:47 -08:00
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
Roy Hyunjin Han
63dea4f7a3 Wrote basic connect() 2014-12-22 12:38:40 +09:00
Sean Arietta
37bd6786d7 Checkpoint 2014-12-20 16:28:22 -08:00
Roy Hyunjin Han
eda747ec4e Use GET request to get pong 2014-11-30 05:58:02 -05:00
Roy Hyunjin Han
cbdf009d46 Add content-type 2014-11-30 05:17:22 -05: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
c3428e0b68 Working through parse error on send 2014-11-25 06:01:53 -05:00
Roy Hyunjin Han
895d2447fd Experiment with socket.io 1.2.0 2014-11-18 10:45:22 -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
Roy Hyunjin Han
7254172545 Save experiments 2014-11-17 18:43:25 -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
Patrick Huber
9285f3da02 allow to pass in a different resource than just 'socket.io' 2014-07-28 09:09:59 +02:00
David Buchmann
20b15872ee Fixed logging.WARNING typo 2014-06-26 14:42:25 +02:00
Krenair
3d12aa8a28 Check for ImportError rather than any exception 2014-05-11 16:32:29 +01:00