Commit Graph

58 Commits

Author SHA1 Message Date
Guillermo Rauch
f66bd79eb4 Fixed handshake packet 2012-01-03 10:37:10 -08:00
Guillermo Rauch
61ec2d92dc Keep track of request that originated socket. 2012-01-03 10:36:49 -08:00
Guillermo Rauch
817ddee41f Initialized debug scope for Socket 2012-01-03 10:36:30 -08:00
Guillermo Rauch
8e9d163666 Refactored onWebSocket to consider the possibility of a websocket handshake. 2012-01-03 10:36:10 -08:00
Guillermo Rauch
b58a5e830b Refactored handshake to allow ws and non-ws handshakes. 2012-01-03 10:35:33 -08:00
Guillermo Rauch
fa7bea93b5 Refactored handleRequest 2012-01-03 10:35:17 -08:00
Guillermo Rauch
35fa0f76db Added debug to handleRequest 2012-01-03 10:34:52 -08:00
Guillermo Rauch
5fcac6e437 Added debug to Server#close 2012-01-03 10:34:30 -08:00
Guillermo Rauch
2d53e5fd85 Implemented Server#close 2012-01-03 10:34:08 -08:00
Guillermo Rauch
c801ff13d5 Make sure to not include non-digits in generated id. 2012-01-03 10:33:13 -08:00
Guillermo Rauch
12ccb6fcf1 Fixed Server#verify 2012-01-03 10:32:49 -08:00
Guillermo Rauch
ba3a85cd31 Simplified transport upgrade possibilities computation 2012-01-03 10:32:25 -08:00
Guillermo Rauch
2819a0c4cf Make Server inherit from EventEmitter 2012-01-03 10:32:06 -08:00
Guillermo Rauch
9c5384f44b Do not cache transport names to allow modification of object.
Added clientsCount property
2012-01-03 10:31:29 -08:00
Guillermo Rauch
fb121a9474 Added debug for debugging 2012-01-03 10:31:01 -08:00
Guillermo Rauch
5e0dd8bb35 Upon http server close, close all engine open clients (attach) 2012-01-03 10:30:23 -08:00
Guillermo Rauch
d7c1ff51c3 Documented client close event arguemnts. 2012-01-03 10:30:05 -08:00
Guillermo Rauch
3d97e1c45e Documented Socket properties. 2012-01-03 10:29:41 -08:00
Guillermo Rauch
32f2d57f7d Documented close event arguments 2012-01-03 10:29:27 -08:00
Guillermo Rauch
2d13524c6c Documented public Server methods 2012-01-03 10:29:13 -08:00
Guillermo Rauch
ff50d1d19f Added Server#clientsCount property 2012-01-03 10:28:49 -08:00
Guillermo Rauch
8a61a1c6b0 Added engine#Transport and engine#transports as public API 2012-01-03 10:28:28 -08:00
Guillermo Rauch
7d28a1e362 Added socket interface. 2011-12-29 13:14:39 -05:00
Guillermo Rauch
3a980d9e67 Added Server (manager) interface. 2011-12-29 13:13:38 -05:00
Guillermo Rauch
150f848480 Fixed style 2011-12-29 13:13:22 -05:00
Guillermo Rauch
c0286cea4e Expose eio and superagent to all tests. 2011-12-29 13:12:57 -05:00
Guillermo Rauch
9abbf2d175 Added basic server tests. 2011-12-29 13:12:40 -05:00
Guillermo Rauch
c6966b6351 Added main engine.io tests. 2011-12-29 12:59:07 -05:00
Guillermo Rauch
7f764a7c73 Added raw http socket handling for flashsocket 2011-12-29 12:58:42 -05:00
Guillermo Rauch
fc65b94d84 refactored websocket upgrade handler in attach. 2011-12-29 12:58:21 -05:00
Guillermo Rauch
f27e66604f Fixed restoration of old listeners when attaching engine.io 2011-12-29 12:49:46 -05:00
Guillermo Rauch
7418142c0d Fixed style 2011-12-29 12:48:49 -05:00
Guillermo Rauch
c581ccad54 Fixed type checking of arguments for engine#listen 2011-12-29 12:48:26 -05:00
Guillermo Rauch
49f9adc208 Revamped exports 2011-12-29 12:47:18 -05:00
Guillermo Rauch
fe9316e6e9 Export protocol revision from main file 2011-12-29 12:44:55 -05:00
Guillermo Rauch
55a462a72a Added http dependency to engine.io 2011-12-29 12:44:23 -05:00
Guillermo Rauch
7afe6a34e2 Added pointer to main file in package.json. 2011-12-23 22:15:09 -08:00
Guillermo Rauch
8a677a9d87 Simply simplifying 2011-12-23 13:42:57 -08:00
Guillermo Rauch
6f115fa078 Fixed require in README 2011-12-23 13:38:35 -08:00
Guillermo Rauch
c9d6a15595 Fixed handleRequest usage 2011-12-23 13:28:38 -08:00
Guillermo Rauch
109ab1b91a Added superagent - required for tests 2011-12-23 13:28:20 -08:00
Guillermo Rauch
fd2eee9849 Removed should mocha require 2011-12-23 13:28:05 -08:00
Guillermo Rauch
a46aa7c094 Added basic engine tests 2011-12-23 13:27:52 -08:00
Guillermo Rauch
884400e8d9 README Client API adjustment. 2011-12-23 11:26:15 -08:00
Guillermo Rauch
aade919c85 Deleted logger. 2011-12-22 21:18:58 -08:00
Guillermo Rauch
3f81f1fc57 Leverage the client parser.
In the same fashion that websocket.io leverages @einaros excellent
`ws` client module.
2011-12-22 18:58:52 -08:00
Guillermo Rauch
a9b3b9638f Fixed typo 2011-12-21 18:30:00 -08:00
Guillermo Rauch
40e7c626f0 Rename 2011-12-21 18:29:40 -08:00
Guillermo Rauch
70e64eafa7 Added expect.js 2011-12-21 18:02:23 -08:00
Guillermo Rauch
0d339536e3 Added common test files 2011-12-21 18:02:10 -08:00