Commit Graph

234 Commits

Author SHA1 Message Date
Guillermo Rauch
e77a363c3c Changed; .send ACK always automatic. 2011-06-12 08:37:40 -03:00
Guillermo Rauch
1db72e17f3 Simplified acks. 2011-06-12 08:37:27 -03:00
Guillermo Rauch
f40e9bde23 Fixed xhr-polling tests. 2011-06-12 07:58:35 -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
baa8056b41 Added coverage analysis flag to Makefile. 2011-06-11 17:37:38 -03:00
Guillermo Rauch
7433e58908 Adapted xhr-polling tests. 2011-06-11 17:34:20 -03:00
Guillermo Rauch
3091490cc2 Fixed style. 2011-06-11 17:34:10 -03:00
Guillermo Rauch
50413024bc Adapted jsonp-polling tests. 2011-06-11 16:41:51 -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
a5a7ec4dbd Adapted websocket tests for connect packet. 2011-06-10 18:16:37 -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
3a22ab097e Adapted htmlfile tests. 2011-06-10 12:07:37 -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
50f6645e0b Renamed Manager#for with Manager#of in tests. 2011-06-09 19:46:44 -03:00
Guillermo Rauch
bcb00306b2 Renamed Manager#for with Manager#of. 2011-06-09 19:46:31 -03:00
Guillermo Rauch
81dd623773 Renamed Manager#for with Manager#of in examples. 2011-06-09 19:46:09 -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
f306870246 Added failing test: serving the client once it's been cached. 2011-06-09 08:49:02 -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
c007ab89f9 Added node_modules to gitignore 2011-06-07 20:15:17 -03:00
Guillermo Rauch
a4568290a6 Changed package.json
- added socket.io-client dependency
- added homepage
2011-06-07 19:10:14 -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
6ab0a4cea5 Updated tests for jsonp callback format. 2011-05-30 11:38:36 -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
81e1c44be1 Updated client API. 2011-05-30 07:42:21 -03:00
Guillermo Rauch
9cf4008c99 Fixes for README
- Added broadcast example
- Restored code snippets since the autodetection was working but vim didn't color it
  nicely.
2011-05-29 18:36:28 -03:00
Guillermo Rauch
14c96c143c Removed console.log statements 2011-05-25 01:29:15 -07:00
Guillermo Rauch
bd1970606c Adjusted timeouts in websocket tests to avoid race conditions. 2011-05-25 01:27:01 -07:00
Guillermo Rauch
e472483bb1 Make sure to retain packet.endpoint for socket messsages. 2011-05-25 01:26:46 -07:00
Guillermo Rauch
faa00b8b2d Added test for broadcasting events in rooms. 2011-05-25 00:57:37 -07:00
Guillermo Rauch
62d3e6341e Added test for broadcasting json to a room. 2011-05-25 00:54:57 -07:00
Guillermo Rauch
7678acc8e6 Added broadcast with to test. 2011-05-25 00:51:10 -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
d2d481ca8b Added test for broadcasting an event. 2011-05-25 00:33:01 -07:00