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
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
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
287dd40dd2
Fixed jsonp-polling and xhr-polling doWrite with no data.
2011-05-19 13:25:35 -07:00
Guillermo Rauch
ccac8fe8a4
Fixed; disable the Nagle algorithm for websocket.
2011-05-19 13:17:42 -07:00
Guillermo Rauch
43f6071f4f
Fixed jsonp-polling writes.
2011-05-19 13:17:25 -07:00
Guillermo Rauch
b4b7c0b428
Fixed; override clearTimeouts for clearing polling timeout for polling transports.
2011-05-19 13:16:59 -07:00
Guillermo Rauch
750e8a9272
Fixed; removed noDelay for all sockets.
2011-05-19 13:16:43 -07:00
Guillermo Rauch
4f293ae44e
Completed WebSocket transport.
...
Added (naive) support for closing frames.
2011-05-18 20:39:24 -07:00
Guillermo Rauch
080abccf10
Fixed distributed connections detection.
...
Fixed; make sure all heartbeats are captured.
Changed; make sure to close on our end when the socket 'end'/'close' event fires.
2011-05-18 20:37:51 -07:00
Guillermo Rauch
7f788e1404
Fixed; added callback support to MemoryStore#publish.
2011-05-18 20:37:24 -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
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
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
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
db87502b9b
Fixed parser#encodePayload
2011-05-15 19:05:46 -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
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
6ed7964f8f
Fixed requests that just target the resource.
2011-05-10 14:49:13 -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
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