Commit Graph

76 Commits

Author SHA1 Message Date
Guillermo Rauch
76a2da8cb8 Fixed style 2011-05-17 18:51:59 -07:00
Guillermo Rauch
a9ed766b85 Fixed; this.connection is undefined. 2011-05-17 18:51:44 -07:00
Guillermo Rauch
6a513d163b Fixed; unknown transports just end the connection.
Fixed; origin verification happens at handshake time.
2011-05-17 18:51:11 -07:00
Guillermo Rauch
d9015b7732 Fix package.json (thanks @dshaw) 2011-05-17 17:03:22 -07:00
Guillermo Rauch
53bedb7abd Added HTMLFile tests. 2011-05-17 16:12:39 -07:00
Guillermo Rauch
36b7ffe70c Fix style 2011-05-17 16:12:28 -07:00
Guillermo Rauch
3595cc4f0b Added HTTPClient export in test utilities. 2011-05-17 16:12:06 -07:00
Guillermo Rauch
c0481f615e Fixed json-p debug instrumentation. 2011-05-17 16:11:51 -07:00
Guillermo Rauch
dfae47d42a Make sure to disable heartbeat intervals in polling transports. 2011-05-17 16:10:47 -07:00
Guillermo Rauch
f5133b6a6f Fixed style. 2011-05-17 16:10:33 -07:00
Guillermo Rauch
da95a4e31f Added cross-connection heartbeat clearing. In a XHR transport, if the POST request
goes through a different connection, we want to clear the heartbeat timeout set in
the connection associated with the GET request.
Added disconnect reasons.
2011-05-17 16:09:01 -07:00
Guillermo Rauch
f65d381961 Changed; hide away message publishing behind message, hearbeat methods added to
the Store.
Added support for reason passing in the store callbacks.
2011-05-17 16:08:13 -07:00
Guillermo Rauch
d35998a633 Added reason support to disconnect callbacks. 2011-05-17 16:07:54 -07:00
Guillermo Rauch
2bf65750f3 Added; test/common exports HTTPClient for transport inheritance.
Added the possibility of HTTPClient not buffering responses.
2011-05-17 11:22:03 -07:00
Guillermo Rauch
e6ad372ef3 Changed; finished refactoring tests. All passing. 2011-05-17 10:52:45 -07:00
Guillermo Rauch
e9ab235174 Tests refactored. 2011-05-16 20:07:56 -07:00
Guillermo Rauch
8f0f71ac92 Changed; cleaned up test utilities:
- Moved all the logic into a reusable class.
 - Minimize globals by only exposing `client` and `create`
 - Separate `http.Agent` per clients so that we can terminate all sockets at once.
 - Implemented `create` to easily spawn a socket.io server for a given client.
2011-05-16 19:45:03 -07:00
Guillermo Rauch
60ad6e3ceb Fixed; HTMLFile#doWrite never gets called since it's an HTTP non-polling transport. 2011-05-16 19:44:37 -07:00
Guillermo Rauch
4724724e20 Changed; only do forced disconnection handling for writable sockets. This prevents
Transport objects created with POST requests from triggering disconnect events too.
Changed; moved forced disconnect logic into Transport#onForcedDisconnect.
2011-05-16 19:43:30 -07:00
Guillermo Rauch
5e61a3bd5a Changed; publish the disconnect event after the disconnect-force internal event. 2011-05-16 19:43:08 -07:00
Guillermo Rauch
0bebd38042 Changed; renamed SocketNamespace#nsp to SocketNamespace#name.
Changed; make sure to only emit the connection event when a client is registered for
the default namespace.
Added `connect` packet handler.
2011-05-16 19:41:52 -07:00
Guillermo Rauch
ad1946e79d Fix; make sure to reset length when parsing a payload. 2011-05-15 19:20:14 -07:00
Guillermo Rauch
f63f72cdac Added additional packet to payload decoding test. 2011-05-15 19:20:03 -07:00
Guillermo Rauch
968afd89a5 Fixed handling of incoming POST requests to a XHR transport.
Fixed payloading encoding.
2011-05-15 19:07:04 -07:00
Guillermo Rauch
30ceabf10f Removed __io counter in incoming sockets. 2011-05-15 19:06:21 -07:00
Guillermo Rauch
b7c877b497 Added additional parser tests. 2011-05-15 19:06:01 -07:00
Guillermo Rauch
db87502b9b Fixed parser#encodePayload 2011-05-15 19:05:46 -07:00
Guillermo Rauch
9820716ff0 Fixed client packet disconnect test. 2011-05-15 13:37:01 -07:00
Guillermo Rauch
5f028c5ca9 Fixed; moved data decoding logic into base HTTP transport interface. 2011-05-15 13:36:21 -07:00
Guillermo Rauch
f2060d1283 Added remaining tests. 2011-05-14 22:04:01 -07:00
Guillermo Rauch
5a164ed053 Fixed tests helpers. 2011-05-14 20:25:46 -07:00
Guillermo Rauch
3dda158065 Changed; make sure to Transport#resume only if the client is connected.
Fixed; send disconnection packet when forced disconnecting.
2011-05-14 19:22:32 -07:00
Guillermo Rauch
4f23e97310 Changed; make sure to clean up client prior to emission of disconnection events. 2011-05-14 19:22:06 -07:00
Guillermo Rauch
af57fd9801 Changed; add disconnect check to Socket#disconnect. 2011-05-14 19:21:42 -07:00
Guillermo Rauch
f1f3918739 Changed instrumentation for disconnection URI from error to debug. 2011-05-14 19:21:19 -07:00
Guillermo Rauch
c6f4a5701f Merge branch 'master' of github.com:LearnBoost/Socket.IO-node 2011-05-14 00:55:13 -07:00
Guillermo Rauch
c6f8009e69 Ignore files 2011-05-10 14:49:46 -07:00
Guillermo Rauch
6ed7964f8f Fixed requests that just target the resource. 2011-05-10 14:49:13 -07:00
Guillermo Rauch
4f6734b006 Merge pull request #202 from 3rd-Eden/master
Misc
2011-05-09 15:19:46 -07:00
Guillermo Rauch
5ddc23f82e Fixed style [OCD-related work]. 2011-05-08 22:42:57 -07:00
Guillermo Rauch
910995a8f2 Fixed emission of non-socket.io events in SocketNamespace. 2011-05-08 22:42:31 -07:00
Guillermo Rauch
5f8192799b Fixed iteration of namespaces in Manager 2011-05-08 22:42:16 -07:00
Guillermo Rauch
790e916cd4 OCD-related work. 2011-05-08 20:46:29 -07:00
Guillermo Rauch
7f3c5f6a73 Fixed typo 2011-05-08 20:44:54 -07:00
Guillermo Rauch
4889057f9a Changed/Added some tests 2011-05-08 20:40:18 -07:00
Guillermo Rauch
a27a6ad2b6 Changed; only output CORS headers for cross-domain requests to minimize framing.
Changed debug instrumentation.
2011-05-08 20:38:53 -07:00
Guillermo Rauch
0a69b580c4 Added WebSocket#writeVolatile (and WebSocket#drained state)
Added WebSocket#doClose
2011-05-08 20:38:10 -07:00
Guillermo Rauch
6665e08cb7 Added HTTPTransport#doClose. 2011-05-08 20:37:49 -07:00
Guillermo Rauch
600c05bbbe Changed; leveraged Transport#close instead of Transport#write with empty string.
Added more debug instrumentation.
2011-05-08 20:37:08 -07:00
Guillermo Rauch
d5e922ba12 Changed debug statement. 2011-05-08 20:36:49 -07:00