make example-ssl
)client.broadcast
now 300% faster Cleaned up chat examplenetserver
for flashsocket Now supporting flashPolicyServer
option (thanks Arnout) Tests passing with and without sudo/root user Fixed noDelay/timeout/utf-8 for draft 76 (accidental typo)0.6.1 / 2010-11-08
else
block)log
if no log key was provided (internal)If the server is not run with root privileges, then the flashsocket transport will instead listen to all new connections on the main port for policy requests. Flash policy requests happen to both port 843 and the destination port: http://www.lightsphere.com/dev/articles/flash_socket_policy.html
[websocket test] Fix sending message to client upon connecting
[websocket test] Fix for connection and handshake test
[client files serving] Leverage end() write() call
[client serving] Make sure to not do a useless file lookup when file is cached
Finished json encoding test
Look for the heartbeat in the decoded message
Refactored websocket transports tests to match polling/multipart helpers
Added coverage testing to Makefile
Added heartbeat test to multipart
Added buffered messages test for multipart
Added assertions for connected
property for all the tests
Multipart clients tracking test
Multipart client>server message sending test
Make sure to only close the client stream when the roundtrip is complete
Multipart connection and handshake tests:
Removed unnecessary check for this.connection (since we now access the socket through req.connection for all transports)
Test for duration
parameter
Added make example
to Makefile
Added clients tracking test for long polling
Added message buffering test for long polling
Improve this.request/this.response/this.connection
Add 'end' listener onConnect, applies to all transports
Improved error handling onConnect
Remove legacy flush
calls
Removed unnecessary closeTimeout clearing in jsonp polling
Make sure to close on disconnect if _open = true
Clear disconnection timeout on disconnection (double check)
Make sure to clear closeTimeout for polling transports on close.
Replaced empty with null in log option
Comma first style for client serving tests
Long polling integration tests
Test for heartbeat message
Added heartbeat timeout test
Support for listener#log false
Corrected onConnect signature to support a request and a socket, or a request and a response.
Removed error checking for non-upgradeable sockets, since they'll be destroyed, and error handling is done onConnect
Added tests for websocket client tracking
Added tests for websocket message buffering
Make sure disconnect timeout is cleared on websocket re-connect
Updated the flash socket with error detection, and readystate detection.
This is needed because when a error occures we close down the connection,
and the stream will become unwriteable.
Also changed to a single write instead of multiple writes.
Moved error handling to onConnect to avoid messing with the http.Server global error handlers
Do special error handling for websocket
Clearing heartbeat interval upon closing the connection
Added error listeners, if theses errors are not correcly caught, they will leak memory.
This caused http://speedo.no.de/ to go up from 1mb per connection after a ECONNECTRESET message
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
Fix COR headers/requests for different ports on Safari.
Clearing the references to request, response and connection upon disconnect.
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.
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
Failing to pass an origin header would throw an exception and crash the server. Added some handling.
.connected renamed to ._open, and adopted proper connected
(fixes #41)
example/client updated to latest socket.io client
Better checking of WebSocket connections
Better handling of SSL location (thanks @jdub)
Fix for cross-domain websocket (fixes #42)
Removed clients/clientsIndex and only using the index (fixes #28)
Fixed WebSocket location header for ws/wss (Thanks @jdub, Fixes #40)
Cross domain issues with xhr-polling addressed. Thanks Niko Kaiser (@nicokaiser)
Added origin verification for incoming data.
Make sure pathname is set (thanks steadicat & swarmation team)
Fix for accessing routes that being with the namespace but are not a connection attempt. Thanks @steadicat from swarmation
JSONP-polling support
Graceful closing of connection for invalid websocket clients
Make it possible to just require 'socket.io'
Make sure to abort the connect() method upon bad upgrade / origin verification
Support for automatic JSON encoding/decoding
Simplified chat example to take advantage of JSON encoding/decoding
Removed fs sync call from example
Better how to use
Make sure to send content-type text/plain to ok
POST responses