Guillermo Rauch
e77a363c3c
Changed; .send ACK always automatic.
2011-06-12 08:37:40 -03:00
Guillermo Rauch
32cd5d7d55
Fixed ugly hack.
2011-06-12 07:58:05 -03:00
Guillermo Rauch
e574ba4a5c
Fixed; added echo connect packet for all namespaces connections.
2011-06-12 07:53:46 -03:00
Guillermo Rauch
6583e9eac7
Simulate a connect packet when connecting to socket, to trigger the connect event
...
on '' namespace transparently.
2011-06-12 07:53:17 -03:00
Guillermo Rauch
50a8d2d50a
Revert.
2011-06-11 22:56:55 -03:00
Guillermo Rauch
19a0fb6912
Always store consumer function.
2011-06-11 18:24:08 -03:00
Guillermo Rauch
2066aef41a
Changed; minor thingies.
2011-06-11 18:22:29 -03:00
Guillermo Rauch
66c1d5fece
Added right Content-Type header for JSONP handshake.
2011-06-11 18:18:55 -03:00
Guillermo Rauch
442f9d9522
Fixed JSON-p handshake error reporting (need tests!)
2011-06-11 18:14:18 -03:00
Guillermo Rauch
1db340aad5
Adapted server encoder/decoder for event spec change.
2011-06-11 18:10:03 -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
1e50ac91b9
Removed re-used socket transport validation concept, as it might mis-authorizse a socket
...
when more than one io.Socket is used in a browser.
2011-06-11 16:40:05 -03:00
Guillermo Rauch
b9e138dc34
Added optimization to write one buffer.
...
Fixed bug where relying on the `drain` event when there's nothing to drain would
prevent volatile messages from ever being sent.
Added websocket write instrumentation.
2011-06-10 18:14:31 -03:00
Guillermo Rauch
13e9727e5c
Remove connection event upon socket initialization, this is now handled by the Manager.
2011-06-10 12:06:55 -03:00
Guillermo Rauch
9087d32c74
Make sure to resume() as soon as the count is registered.
...
Echo back connect packet upon first connection.
2011-06-10 12:03:55 -03:00
Guillermo Rauch
bcb00306b2
Renamed Manager#for with Manager#of.
2011-06-09 19:46:31 -03:00
Guillermo Rauch
a4cac1e423
Fixed client serving once it's been cached.
...
Fixed style.
2011-06-09 08:49:15 -03:00
Guillermo Rauch
4db20e870a
Added client require to manager.js
...
Removed clientVersion access from parent exports.
2011-06-09 08:31:15 -03:00
Guillermo Rauch
9cf9f1e9e0
Point to client.dist to access dist/ directory location.
2011-06-09 08:15:35 -03:00
Guillermo Rauch
e8640d6713
Changed; leveraged npm socket.io-client module from io.
2011-06-07 20:15:33 -03:00
Guillermo Rauch
35e1d9b0f6
Removed old client.
2011-06-07 19:06:24 -03:00
Guillermo Rauch
e0da36e944
Fixed old listeners calls.
2011-06-02 16:55:32 -03:00
Guillermo Rauch
f8697e22ff
Fix json-p handshake.
2011-06-02 16:43:13 -03:00
Guillermo Rauch
abde1ca389
Updated jsonp callback format.
2011-05-30 11:38:19 -03:00
Guillermo Rauch
76bec7bc7e
Faster websocket parsing (thanks mraleph)
2011-05-30 11:37:59 -03:00
Guillermo Rauch
7970815a54
Updated default timeouts.
...
Added error handling for JSONP handshake.
2011-05-30 11:37:20 -03:00
Guillermo Rauch
e472483bb1
Make sure to retain packet.endpoint for socket messsages.
2011-05-25 01:26:46 -07:00
Guillermo Rauch
5f1d5e30dc
Reverted back to the room flag for Socket. This way we can call SocketNamespace#in
...
when we relay a packet to the namespace, instead of overriding the endpoint acting
directly on SocketNamespace#flag. In addition, the room is only useful for broadcasting,
and it has no effect on the client, so `endpoint` should remain untouched.
2011-05-25 00:49:43 -07:00
Guillermo Rauch
3ba715eb49
Added support for the Socket#broadcast getter in Socket#packet
...
Added Socket#setFlags for consistency with SocketNamespace.
2011-05-25 00:22:41 -07:00
Guillermo Rauch
4427b3e64b
Added SocketNamespace#except flag setter.
...
Added; keep track of exceptions (list of session ids) as part of flags, that then
get reset.
Fixed JSON double encoding.
2011-05-25 00:21:51 -07:00
Guillermo Rauch
aac298d212
Fixed Socket#to and Socket#join. Make sure that the name of the room preserves the
...
namespace as prefix, unless the namespace is ''. This prevents collisions between
rooms of the '' endpoint with other arbitrary endpoints.
2011-05-24 23:46:59 -07:00
Guillermo Rauch
3f030bd3fb
Fixed SocketNamespace#in, editing the endpoint flag directly instead of creating
...
`room`.
2011-05-24 23:46:31 -07:00
Guillermo Rauch
5dc8ddcda8
Added missing socket id to Store#join call.
2011-05-24 23:34:28 -07:00
Guillermo Rauch
aa4ffff9f9
Fixed broken reference to SocketNamespace object in Socket#join.
2011-05-24 23:33:24 -07:00
Guillermo Rauch
be8e6ab05e
Make sure to auto-join client to '' when handshaking.
...
Renamed internal clients dictionary to clientsMap to avoid collisions with
Store#clients.
2011-05-24 23:26:32 -07:00
Guillermo Rauch
7c6da424c0
Added new broadcast flag to Socket.
...
Added `Socket#to` for targeting rooms when broadcasting.
2011-05-24 23:25:48 -07:00
Guillermo Rauch
6e76229eb9
Make sure to encode packets in SocketNamespace#packet.
2011-05-24 23:25:30 -07:00
Guillermo Rauch
1726da4ca3
Added support for json-p handshake.
2011-05-24 22:53:42 -07:00
Guillermo Rauch
a08b791cb8
Fixed Socket#emit with function as last argument (event packet with ACK)
2011-05-24 22:31:29 -07:00
Guillermo Rauch
5a93d72e9c
Make sure automatic endpoints preserve endpoint.
2011-05-24 22:09:03 -07:00
Guillermo Rauch
bfabd6eadf
Renamed Socket#packets ACK packets count to ackPackets for clarity.
2011-05-24 21:16:45 -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
79f6e5c538
Make sure that Socket#packet encodes the message prior to publication.
2011-05-24 21:01:05 -07:00
Guillermo Rauch
61eb0a2fd4
Added manual ack data callback handling.
2011-05-24 21:00:48 -07:00
Guillermo Rauch
adf9f1150a
Added automatic ACK handling to Transport.
2011-05-24 20:23:45 -07:00
Guillermo Rauch
aa3b99a630
Added Socket#$emit as the original EventEmitter emit
2011-05-24 18:51:40 -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
a2c30a1416
Fixed event emission from Socket (the name key was missing)
2011-05-22 20:17:20 -07:00