Commit Graph

140 Commits

Author SHA1 Message Date
Guillermo Rauch
5ea91da02f Added missing socket argument to event listener 2011-05-24 20:25:36 -07:00
Guillermo Rauch
fced9cca5e Fixed test expectation for Ack packet. 2011-05-24 20:24:03 -07:00
Guillermo Rauch
adf9f1150a Added automatic ACK handling to Transport. 2011-05-24 20:23:45 -07:00
Guillermo Rauch
bd231fcc9b Make sure to POST the ACK after the response close, so that we can test buffering
of ACKs.
2011-05-24 20:01:48 -07:00
Guillermo Rauch
0c4ac66b5f Fixed missing post reference in xhr-polling test. 2011-05-24 19:56:42 -07:00
Guillermo Rauch
00b600e5c0 Fixed xhr-polling test. 2011-05-24 19:55:12 -07:00
Guillermo Rauch
fafb44dcad Fixed test expectation for xhr-polling. 2011-05-24 19:54:11 -07:00
Guillermo Rauch
c57cabb982 Fixed missing done reference in xhr-polling test. 2011-05-24 19:53:04 -07:00
Guillermo Rauch
9777886f6c Fixed test expecetation in xhr-polling. 2011-05-24 19:51:48 -07:00
Guillermo Rauch
aa3b99a630 Added Socket#$emit as the original EventEmitter emit 2011-05-24 18:51:40 -07:00
Guillermo Rauch
b3b4ac439d Fixed event emitter in test with correct paramaters. 2011-05-24 18:43:16 -07:00
Guillermo Rauch
3be15033cc Fixed test expectation in messages json comparison. 2011-05-24 18:42:03 -07:00
Guillermo Rauch
c30a8edcc0 Added volatile event tests for htmlfile. 2011-05-22 22:33:25 -07:00
Guillermo Rauch
cf435bf3c6 Add test for deliverable volatile json. 2011-05-22 22:28:56 -07:00
Guillermo Rauch
2869f466be Added volatile message tests for htmlfile. 2011-05-22 22:23:53 -07:00
Guillermo Rauch
2cc3a85ea1 Added test for undeliverable volatile events for htmlfile. 2011-05-22 21:21:02 -07:00
Guillermo Rauch
8c9e063b74 Added htmlfile test for undeliverable volatile json. 2011-05-22 21:11:37 -07:00
Guillermo Rauch
fcd474e89e Added htmlfile test for undeliverable volatile messages. 2011-05-22 21:10:20 -07:00
Guillermo Rauch
0e3f0eabe4 Simplified heartbeat htmlfile test, made consistent with websocket one. 2011-05-22 20:47:07 -07:00
Guillermo Rauch
7b486e2b37 Make sure to set drain to false upon htmlfile transport write. 2011-05-22 20:18:03 -07:00
Guillermo Rauch
334c00f2c0 Finished last websocket test. 2011-05-22 20:17:44 -07:00
Guillermo Rauch
a2c30a1416 Fixed event emission from Socket (the name key was missing) 2011-05-22 20:17:20 -07:00
Guillermo Rauch
474f4e6ebd Added test for delivery of volatile json messages with websocket. 2011-05-22 14:39:43 -07:00
Guillermo Rauch
a5634b0bbd Added test for delivering volatile messages in websocket. 2011-05-22 14:37:05 -07:00
Guillermo Rauch
f020d012f2 Make sure the socket is considered drained when re-set, specially if a socket is
closed before its drain event fires.
2011-05-22 14:28:41 -07:00
Guillermo Rauch
b76901eb56 Removed writeVolatile special handling for polling transports, since it's now handled
elegantly across all transports, and polling drained-ness doesn't concern us.
2011-05-22 14:22:41 -07:00
Guillermo Rauch
777746d42d Changed; moved volatile message subscription to request initialization.
Fixed; socket errors now close the transport instead of resulting in a disconnection.
Transport#writeVolatile now considers transport open state.
2011-05-22 14:20:18 -07:00
Guillermo Rauch
e436f90ac9 Removed Transport#drained initialization from WebSocket transport constructor. 2011-05-22 13:25:13 -07:00
Guillermo Rauch
c0e1944462 Added WebSocket#drained initialization to constructor. 2011-05-22 13:24:51 -07:00
Guillermo Rauch
f5edca935d Added Transport#writeVolatile for every transport.
Removed WebSocket#writeVolatile, inherit from Transport instead.
Removed `drain` listener from WebSocket onSocketConnect method.
2011-05-22 13:18:51 -07:00
Guillermo Rauch
9cfffa48e8 Added Transport#drained and Transport#onSocketDrain for every transport. 2011-05-22 13:17:00 -07:00
Guillermo Rauch
9b8ca8cc4b Added test for undeliverable volatile events for websocket. 2011-05-22 13:02:13 -07:00
Guillermo Rauch
8c9e6a99bc Added test for undeliverable volatile json in websocket. 2011-05-22 13:01:56 -07:00
Guillermo Rauch
4bba9b1e17 Added test for undeliverable volatile messages for websocket. 2011-05-22 13:01:28 -07:00
Guillermo Rauch
ef610de2b1 Added websocket test for maintaining session by responding to heartbeats. 2011-05-21 21:56:29 -07:00
Guillermo Rauch
c07693b46e Added websocket test for heartbeat disconnection reason. 2011-05-21 21:41:54 -07:00
Guillermo Rauch
c2b6acbff4 Fixed; make sure to check for the beat presence before examining the disconnection
reason in htmlfile heartbeat test.
2011-05-21 21:38:34 -07:00
Guillermo Rauch
4ab6e9592f Fixed; make sure to check for the heartbeat being sent to client in htmlfile
heartbeat test.
2011-05-21 21:36:33 -07:00
Guillermo Rauch
227e14c71b Fixed global leak in websocket test. 2011-05-21 21:34:21 -07:00
Guillermo Rauch
ef435a0b03 Finished incomplete xhr-polling test. 2011-05-21 21:31:10 -07:00
Guillermo Rauch
c8a73d56c8 Added more xhr-polling tests. 2011-05-21 21:01:03 -07:00
Guillermo Rauch
07f5d1ff64 Added MemoryStore#clients.
Added MemoryStore#join.
Added MemoryStore#leave.
2011-05-21 20:57:41 -07:00
Guillermo Rauch
8416e76114 Added SocketNamespace#store shortcut.
Added SocketNamespace#in
Added SocketNamespace#for
Implemented SocketNamespace#packet
Fixed SocketNamespace#emit
Fixed SocketNamespace#send
2011-05-21 20:56:31 -07:00
Guillermo Rauch
b4034878eb Added jsonp-polling tests. 2011-05-19 15:53:27 -07:00
Guillermo Rauch
b5b72bd212 Fixed; make sure handshake responses are not parsed. 2011-05-19 15:50:55 -07:00
Guillermo Rauch
88d5daa3b5 Finished jsonp-polling transport. 2011-05-19 15:35:18 -07:00
Guillermo Rauch
4f4d25e954 Fixed parameter names for htmlfile 2011-05-19 14:53:56 -07:00
Guillermo Rauch
f47a9dc110 Fixed parameter names for xhr-polling 2011-05-19 14:51:55 -07:00
Guillermo Rauch
882fb96567 Fixed; constructor parameter names for websocket. 2011-05-19 14:51:08 -07:00
Guillermo Rauch
aa1ba762ae All tests passing 2011-05-19 13:26:26 -07:00