19 Commits

Author SHA1 Message Date
Guillermo Rauch
8323a43480 Client#broadcast test 2010-10-30 19:45:19 -03:00
Guillermo Rauch
880eaa1047 Only utilize 7XXX ports across tests 2010-10-25 03:25:58 -03:00
Guillermo Rauch
8b483789fe Make sure to call .end() when listening on connection 'end' event
Make sure the file descriptor is destroyed on disconnection
Fix for websocket client tracking test
2010-10-24 20:31:18 -03:00
Guillermo Rauch
7ea53b8bee [websocket test] Fix sending message to client upon connecting 2010-10-24 18:59:59 -03:00
Guillermo Rauch
75a4705426 [websocket test] Fix for connection and handshake test 2010-10-24 17:15:06 -03:00
Guillermo Rauch
e66751f65a Finished json encoding test 2010-10-24 15:11:49 -03:00
Guillermo Rauch
39a558ee3d Look for the heartbeat in the decoded message 2010-10-24 14:57:20 -03:00
Guillermo Rauch
4eda3d374d Refactored websocket transports tests to match polling/multipart helpers
Make sure to close client/server in heartbeat test
2010-10-24 14:54:11 -03:00
Guillermo Rauch
3ecb37de17 Added buffered messages test for multipart
Added assertions for `connected` property for all the tests
2010-10-20 13:47:59 -03:00
Guillermo Rauch
66a6e6d37e Test for heartbeat message 2010-10-17 18:08:41 -03:00
Guillermo Rauch
464a1c6448 Added heartbeat timeout test
Support for listener#log false
2010-10-17 18:06:53 -03:00
Guillermo Rauch
18a0b99282 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
2010-10-17 05:41:29 -03:00
Guillermo Rauch
6f37628b4f Clearing heartbeat interval upon closing the connection
Commenting client serving test (made the tests hang)
Make sure to close the netserver if all listeners http servers are closed
2010-10-04 16:41:48 -03:00
Guillermo Rauch
30f0521461 Adapting websocket client api to ev.data
Closing as opposed to disconnecting when websocket errors out
2010-10-03 18:44:17 -03:00
Guillermo Rauch
0dd9cc3ada _decode and _encode moved to utils
Removed accidental 1==2 for serving the not modified status code for the client
Finished websocket test
2010-10-03 18:19:21 -03:00
Guillermo Rauch
4465d3416b Tabs => spaces 2010-10-03 15:40:06 -03:00
Guillermo Rauch
a264f98e78 Updated expresso 2010-09-20 12:23:03 -07:00
Guillermo Rauch
efd458be7d Cleaned up index and websocket tests 2010-09-20 12:03:18 -07:00
Guillermo Rauch
757337fac5 Cleanly closing connection if data is incorrectly framed
Reorganized tests
2010-08-02 09:50:28 -07:00