Guillermo Rauch
94d513c85a
Revert "Fixes leaking Redis subscriptions for #663 . The local flag was not getting passed through onClientDisconnect()."
...
This reverts commit d5ab46d662 .
2011-11-26 15:14:26 -08:00
Daniel Shaw
d5ab46d662
Fixes leaking Redis subscriptions for #663 . The local flag was not getting passed through onClientDisconnect().
2011-11-26 11:22:43 -08:00
Arnout Kazemier
f689434f61
Make sure that you can disable heart beats
2011-07-25 22:12:48 +02:00
Guillermo Rauch
faad10baee
Changed Transport#end instrumentation.
2011-07-12 04:29:11 -03:00
Guillermo Rauch
34505071f4
Fixed double disconnect events.
2011-07-12 03:41:43 -03:00
Guillermo Rauch
f302744fec
Removed unneeded buffer declarations.
2011-06-30 18:58:06 -03:00
Guillermo Rauch
a3ba4e2c10
Fixed; make sure to clear socket handlers and subscriptions upon transport close.
2011-06-30 18:19:41 -03:00
Guillermo Rauch
40c1f8da2b
Fixed; only clear handlers if they were set. [level09]
2011-06-30 12:47:02 -03:00
Guillermo Rauch
2fb28c8843
Removed Transport#subscribe and Transport#unsubscribe
2011-06-27 15:47:55 -03:00
Guillermo Rauch
767ca4f100
Fixed .end signature
2011-06-27 15:47:43 -03:00
Guillermo Rauch
733569ae68
Added Transport#discard. Mostly useful for when request/response cycles are load
...
balanced into different nodes.
2011-06-27 15:47:14 -03:00
Guillermo Rauch
f736302b97
Refactored Transport#end
...
Removed concept of transport pausing as we no longer have async buffers.
2011-06-27 15:46:43 -03:00
Guillermo Rauch
7bfcf54f90
Publish transport close event.
2011-06-27 15:45:58 -03:00
Guillermo Rauch
fa5ef9ff2d
Removed forced parameter from .end call from disconnect
2011-06-27 15:45:37 -03:00
Guillermo Rauch
df457440fd
Refactored onMessage to leverage subscriptions
2011-06-27 15:45:18 -03:00
Guillermo Rauch
375cbf49de
Important fix for hearbeats
2011-06-27 15:45:09 -03:00
Guillermo Rauch
2c66814b82
Applied new .end signature
2011-06-27 15:44:50 -03:00
Guillermo Rauch
2a4e4e1300
Added handler for dispatch subscription
2011-06-27 15:44:38 -03:00
Guillermo Rauch
6f12de98fc
Added handler for heartbeat clear subscription
2011-06-27 15:44:28 -03:00
Guillermo Rauch
73ea4dd13f
Removed the .end method to disregard whether it was forced or not
2011-06-27 15:43:46 -03:00
Guillermo Rauch
772afe897d
Refactored Transport to leverage subscriptions.
2011-06-27 15:43:24 -03:00
Guillermo Rauch
191d68d85f
Workaround for race condition
2011-06-20 17:34:16 -03:00
Guillermo Rauch
b94320fb97
Changed; improved instrumentation for setting request.
2011-06-16 13:59:01 -03:00
Guillermo Rauch
ea8cfc5c8f
Fixed problem with multiple request handling.
...
Added proper cleanup
2011-06-13 02:58:10 -03:00
Guillermo Rauch
1743baba29
Changed behavior of end and close events, and introduced swapped semaphore.
2011-06-12 19:49:50 -03:00
Guillermo Rauch
19c62c1f7b
Fixed; force disconnection can still happen even with temporarily closed transports.
2011-06-11 16:41:28 -03:00
Guillermo Rauch
5a93d72e9c
Make sure automatic endpoints preserve endpoint.
2011-05-24 22:09:03 -07:00
Guillermo Rauch
a647fae3c4
Remvoed volatile messages unsubscription.
2011-05-24 21:03:21 -07:00
Guillermo Rauch
245c57c527
Fix style.
2011-05-24 21:02:26 -07:00
Guillermo Rauch
b663f5dd24
Make sure the Transport assumes delivered messages are pre-encoded.
2011-05-24 21:01:27 -07:00
Guillermo Rauch
adf9f1150a
Added automatic ACK handling to Transport.
2011-05-24 20:23:45 -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
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
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
750e8a9272
Fixed; removed noDelay for all sockets.
2011-05-19 13:16:43 -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
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
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
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
c39191b3fd
Added the notion of forced disconnects.
...
Added Transport#onSocketConnect interface.
Added Transport#clearTimeouts
Added heartbeat response handling.
Added Transport#close, Transport#onClose, chanaged Transport#end.
2011-05-08 20:35:38 -07:00
Guillermo Rauch
c3171be7a8
Added; implemented message handling at transport level for heartbeat clearing and
...
disconnection handling.
2011-05-07 18:24:45 -07:00
Guillermo Rauch
c2d0774d46
Removed const (slow)
2011-05-06 15:12:51 -07:00
Guillermo Rauch
1514af064f
Socket.IO 0.7-pre
2011-05-05 08:49:40 -07:00