Commit Graph

40 Commits

Author SHA1 Message Date
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
72497517d3 Fixed multipart heartbeat test 2010-10-24 15:17:02 -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
a65326e640 Added gitignore
Added coverage testing to Makefile
Added heartbeat test to multipart
2010-10-24 12:50:34 -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
6a6779697d Multipart clients tracking test 2010-10-20 04:07:40 -03:00
Guillermo Rauch
6ad4df3f64 Multipart client>server message sending test
Make sure to only close the client stream when the roundtrip is complete
2010-10-20 04:02:25 -03:00
Guillermo Rauch
1defee7e6c Multipart connection and handshake tests:
- Implemented HTTP client on top of net.Stream with multipart boundary parsing for testing
- Test for connection / server>client message sending
2010-10-20 03:48:09 -03:00
Guillermo Rauch
148aa74a29 Removed unnecessary check for this.connection (since we now access the socket through req.connection for all transports)
Started on multipart tests
2010-10-19 15:33:57 -03:00
Guillermo Rauch
d624ef3ea8 Test for duration parameter
Close the server
2010-10-19 15:06:06 -03:00
Guillermo Rauch
25f597a9f8 Added make example to Makefile
Added clients tracking test for long polling
Added message buffering test for long polling
2010-10-19 14:18:34 -03:00
Guillermo Rauch
6712d71a2e Replaced empty with null in log option
Comma first style for client serving tests
2010-10-18 18:05:32 -03:00
Guillermo Rauch
080e8944a3 Re-enabled serving static files test
Changed handling of options so that polling defaults are in the respective transports
Switched to comma-first style
2010-10-18 17:05:19 -03:00
Guillermo Rauch
8b52e1f8ed Long polling integration tests
- Utility functions
 - Connection and handshake test
2010-10-17 21:29:19 -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
36463a245e Moved dependencies into support/ from tests/support
Adapted Makefile
2010-10-03 18:24:16 -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
b5deea4855 Converted tabs into spaces
Typo fix in flash socket warning message
2010-10-03 15:39:24 -03:00
Guillermo Rauch
a883f17fac Close the server upon timeout
Starting converting back to spaces to comply with node coding standards
2010-10-03 15:32:51 -03:00
Guillermo Rauch
8ef523b97e Expresso updated for regular expressions suppport (thanks tj) 2010-09-20 12:32:49 -07: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
5524812243 client.js tests fixes
Removed `.test` suffix from tests
Updated node-websocket-client
2010-09-20 11:56:27 -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
Guillermo Rauch
757337fac5 Cleanly closing connection if data is incorrectly framed
Reorganized tests
2010-08-02 09:50:28 -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
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
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
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
fa90d2c520 Added expresso submodule for testing 2010-07-19 02:11:11 -07:00