slnpacifist
d2ead47fca
added encode=UTF-8 in jsonp-polling.js and xhr-polling.js since UTF-8 is the default encoding for http.ServerResponse.write
...
replaced string.length with Buffer.byteLength in jsonp-polling.js, listener.js and xhr-polling.js because content-length header requires number of bytes and not the number of symbols in string
2010-09-28 17:28:31 +07:00
Guillermo Rauch
c1e08318ca
Clearing the references to request, response and connection upon disconnect.
2010-09-26 16:29:51 +02:00
Guillermo Rauch
880fb2b71d
Updated client
...
[ocd] fix
2010-09-20 16:26:52 -07:00
Arnout Kazemier
c6b176555e
Every require is blocking and requiring the sys module over and over and over again just makes no sense + it hurt performance.. Not to mention.. that it's already included.
2010-09-17 14:52:57 -07:00
Arnout Kazemier
a387982289
When an error occurs during the connection we should disconnect
2010-09-17 13:51:25 -07:00
Arnout Kazemier
fac2498f1f
The listen method doesn't return a netserver instance, so the server onclose netserver.close will fail because netserver will be undefined.
2010-09-17 13:50:06 -07:00
Guillermo Rauch
61f4e27029
Socket.IO-node now serves the client out of the box for easier implementation
...
Memory caching and ETag support for static files
Tests
Simplified demo even further thanks to new static file serving
2010-09-09 17:54:25 -07:00
mgc
4b75668511
Failing to pass an origin header would throw an exception and crash the server. Added some handling.
2010-09-04 04:50:44 -04:00
Guillermo Rauch
d0415723ff
.connected renamed to ._open, and adopted proper connected ( fixes #41 )
...
example/client updated to latest socket.io client
2010-09-05 16:49:18 -07:00
Guillermo Rauch
61e76db16c
Better checking of WebSocket connections
2010-09-03 11:47:31 -07:00
Guillermo Rauch
701c35d952
Fix for certain buggy clients. Needs more investigation. Thanks Malte Ubl (@cramforce) for the report. Fixes #44
2010-09-03 11:28:23 -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
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
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
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
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
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
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
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
b2c0b78130
Fixed example
...
Fixed broken references
2010-07-28 14:29:50 -07:00
Guillermo Rauch
22ef7918b3
Changed chat example to match the new more node-friendly syntax
...
Clients now fire `disconnect` event.
2010-07-28 11:44:10 -07:00
Guillermo Rauch
0edd16d575
Clients now emit message event and inherit EventEmitter
...
More encoding tests
Encoding fix for non-array arguments
Leveraged Array.isArray
Handling of undefined and null values
2010-07-28 11:14:58 -07:00
Guillermo Rauch
deb59f6725
Deleted DS_Store committed accidentally
2010-07-28 10:05:48 -07:00
Guillermo Rauch
fc40156a8c
Fixed encoding / decoding
...
Moved library files into lib/socket.io for future npm support
Added tests for encoding / decoding
Fixed inheritance of certain classes
Fixed options supports
2010-07-28 09:59:19 -07:00
Guillermo Rauch
ce6fa8611b
Path restructuring
2010-07-19 15:13:11 -07:00
Guillermo Rauch
5ba6035260
Removed oo requirement / global
...
Removed sys requirement
2010-07-19 15:10:31 -07:00
Guillermo Rauch
18068b56cd
Added frame after message length
...
Make sure message is always a string
2010-07-19 03:00:25 -07:00