Commit Graph

132 Commits

Author SHA1 Message Date
Guillermo Rauch
670ecbec89 Updated client 2010-09-01 02:06:45 -07:00
Guillermo Rauch
d920f8e64a Merge branch 'master' of git://github.com/aheckmann/Socket.IO-node 2010-09-01 01:31:39 -07:00
Guillermo Rauch
5279b13f54 Better handling of SSL location (thanks @jdub) 2010-09-01 01:26:23 -07:00
Aaron Heckmann
831c293b0c cache the length property 2010-09-01 01:07:24 -04:00
Guillermo Rauch
691de0ed7f Fix for cross-domain websocket (fixes #42) 2010-08-31 15:26:56 -07:00
Guillermo Rauch
c9ec8e27d2 Updated docs
Added clientsIndex reference for BC
2010-08-31 14:36:05 -07:00
Guillermo Rauch
ab623c341b Added sweet error message when trying to use flashsocket without root privileges (thanks @wink for inspiration)
Removed clients/clientsIndex and only using the index (fixes #28)
2010-08-31 14:26:02 -07:00
Guillermo Rauch
24b2714820 [README] Transports clarification 2010-08-31 12:10:25 -07:00
Guillermo Rauch
c023fae2e2 Updated client
Fixed WebSocket location header for ws/wss (Thanks @jdub, Fixes #40)
2010-08-30 19:00:52 -07:00
Guillermo Rauch
39bc1755d8 end was being fired before the connection had really ended in MobileSafari (fixes #29 and potentially creationix issue) 2010-08-30 18:13:26 -07:00
Guillermo Rauch
83ca36d54f Cross domain issues with xhr-polling addressed. Thanks Niko Kaiser (@nicokaiser)
Added origin verification for incoming data.
2010-08-30 17:00:18 -07:00
Guillermo Rauch
dace58b3f7 Updated client 2010-08-30 15:24:10 -07:00
Guillermo Rauch
87f69ab566 Make sure pathname is set (thanks steadicat & swarmation team) 2010-08-30 12:54:39 -07:00
Guillermo Rauch
b705fff132 Fix for accessing routes that being with the namespace but are not a connection attempt. Thanks @steadicat from swarmation 2010-08-30 12:32:55 -07:00
Guillermo Rauch
8e9467719d Updated client 2010-08-29 18:27:53 -07:00
Guillermo Rauch
0dfdc4c83e Cleanup 2010-08-29 17:07:45 -07:00
Guillermo Rauch
72a173e1f1 Some fixes for JSONP-polling 2010-08-29 15:53:41 -07:00
Guillermo Rauch
50a68c9210 JSONP-polling support 2010-08-26 15:50:31 -07:00
Guillermo Rauch
56f0c0f40e Updated client 2010-08-26 13:37:08 -07:00
Guillermo Rauch
cec2e282db Graceful closing of connection for invalid websocket clients 2010-08-24 17:24:40 -07:00
Guillermo Rauch
4bec17e903 Make it possible to just require 'socket.io' 2010-08-24 17:18:22 -07:00
Guillermo Rauch
699e3f1d52 Make sure to abort the connect() method upon bad upgrade / origin verification 2010-08-24 15:51:21 -07:00
Guillermo Rauch
70759ed532 Support for automatic JSON encoding/decoding
Simplified chat example to take advantage of JSON encoding/decoding
Removed fs sync call from example
2010-08-23 21:20:55 -07:00
Guillermo Rauch
7b7270d5ae Better how to use 2010-08-12 23:57:44 -07:00
Guillermo Rauch
e9ffd89050 Updated chat example (thanks saikat) 2010-08-04 16:10:00 -07:00
Guillermo Rauch
757337fac5 Cleanly closing connection if data is incorrectly framed
Reorganized tests
2010-08-02 09:50:28 -07:00
Guillermo Rauch
522318a60d Make sure to send content-type text/plain to ok POST responses 2010-08-01 17:16:20 -07:00
Guillermo Rauch
c173141f8b Updated client 0.5.3 2010-08-01 14:05:55 -07:00
Guillermo Rauch
91cdddb32c Updated client to 0.5.2 0.5.2 2010-08-01 11:27:43 -07:00
Guillermo Rauch
4acf98db9d Fixed require path in README (thanks Tobsn) 2010-07-29 11:09:21 -07:00
Guillermo Rauch
73cc5e2c66 Updated client 0.5.1 2010-07-29 10:37:44 -07:00
Guillermo Rauch
58ac323423 Extended how to use section 2010-07-29 02:04:02 -07:00
Guillermo Rauch
cd2c5140f1 Updated client 2010-07-29 01:59:02 -07:00
Guillermo Rauch
ae159b5f7d Updated README 0.5 2010-07-29 01:57:59 -07:00
Guillermo Rauch
e738e7c26e Added json.js for the chat example on IE 2010-07-29 01:48:59 -07:00
Guillermo Rauch
4e7db51c8c Had accidentally removed an all-too-important line. Fix for htmlfile 2010-07-28 22:45:16 -07:00
Guillermo Rauch
f87d883d79 Updated client
heartbitTimeout > heartbeatTimeout
2010-07-28 21:25:10 -07:00
Guillermo Rauch
0a2d007179 Detect disconnections of xhr-polling faster, by listening on end event (if the connection is forcibly closed by the UA before the 20 seconds of polling pass).
Possible speed optimization noted
Make sure disconnection timeouts are not called more than once (check for .connected in onClose)
2010-07-28 20:31:34 -07:00
Guillermo Rauch
223c58b248 timeout and heartbeatInterval options moved to client options
Disabled heartbeats for xhr-polling, since we can leverage close timeout instead (connections are reopened frequently)
2010-07-28 20:09:18 -07:00
Guillermo Rauch
4ea73fc889 Removed legacy __super__ call 2010-07-28 20:01:26 -07:00
Guillermo Rauch
830fe231d5 Escaping for hax0rs 2010-07-28 19:51:35 -07:00
Guillermo Rauch
79faa40dbf Temporarily dropping the unicode characters because flash socket has no support. 2010-07-28 19:44:55 -07:00
Guillermo Rauch
303b485775 Escape quotes for htmlfile 2010-07-28 19:34:34 -07:00
Guillermo Rauch
4322dd23de Make sure to pass the unframed message to _onHeartbeat
Fixed string-number heartbeat comparison
2010-07-28 18:42:13 -07:00
Guillermo Rauch
9686771535 Fixed bogus this reference 2010-07-28 18:27:04 -07:00
Guillermo Rauch
7da19a2c38 Added heartbeatInterval option
Added default timeout with 8000ms
Make sure to re-trigger the heartbeat timeout after validating one
2010-07-28 18:10:07 -07:00
Guillermo Rauch
15613de7d4 Chat example correction
Make sure Flashsocket calls WebSocket constructor, not Client
Adapted framing to match client's
2010-07-28 16:53:46 -07:00
Guillermo Rauch
3d11b176fe Expose listener class
Bumped node version
Updated client
Make sure constructors are called
Added tests
2010-07-28 16:33:41 -07:00
Guillermo Rauch
910de83942 Added node-websocket-client for testing 2010-07-28 14:31:04 -07:00
Guillermo Rauch
b2c0b78130 Fixed example
Fixed broken references
2010-07-28 14:29:50 -07:00