Commit Graph

52 Commits

Author SHA1 Message Date
Guillermo Rauch
c210241379 Refactored handshake 2011-06-27 15:27:58 -03:00
Guillermo Rauch
8594d684ef Fixed style 2011-06-27 15:27:44 -03:00
Guillermo Rauch
970621d5ee Refactored client request handling:
- removed the concept of async handshake, since we now keep track of open/closed
   clients and handshakes across all nodes (replication)
 - when a client closes temporarily, before the disconnection is triggered and before
   the transport is reopened in any node, we buffer messages in all nodes. We therefore
   remove the need for a complex message queue with a memory tradeoff (buffer redundancy).
2011-06-27 15:21:50 -03:00
Guillermo Rauch
c9d9c2e8b3 Added initStore and subscription handlers. 2011-06-27 15:21:01 -03:00
Guillermo Rauch
8f44f026ee Removed usage of Store#disconnect, replaced with a simple subscription. 2011-06-27 15:20:35 -03:00
Guillermo Rauch
c369073a72 Moved id generation method into the manager. 2011-06-27 15:18:37 -03:00
Guillermo Rauch
b700f0546d Added call to initStore to initialize subscriptions. 2011-06-27 15:16:54 -03:00
Arnout Kazemier
7200dfed84 Output the correct name 2011-06-23 00:48:06 +02:00
Arnout Kazemier
b348f4de99 Style 2011-06-23 00:23:18 +02:00
Arnout Kazemier
6f93bb2ec7 Added 304 support 2011-06-23 00:20:28 +02:00
Arnout Kazemier
1bddfc45dd Added client handler to the options, just for the sake of consistency 2011-06-21 21:09:41 +02:00
Arnout Kazemier
8115cbacee Added reconnect advice from broken handshakes + deadcode removal 2011-06-20 00:14:36 +02:00
Arnout Kazemier
78285af72f Fix for encoding of the static serve and we should send buffers instead of strings 2011-06-18 21:37:54 +02:00
Arnout Kazemier
32db05d178 Passes test suite + 2 new tests 2011-06-18 21:12:11 +02:00
Arnout Kazemier
dba93a1bb3 lib/ 2011-06-18 20:28:13 +02:00
Arnout Kazemier
567140e183 -- console.dir 2011-06-18 20:15:55 +02:00
Arnout Kazemier
b1837f348e Improved static serving of content 2011-06-18 20:14:58 +02:00
Arnout Kazemier
0400a51b91 Should init the transport with the init function
not the flashsocket each time
2011-06-18 11:17:16 +02:00
Guillermo Rauch
b928e77fd1 Changed non-socket.io scope requests logging since it was confusing users. 2011-06-18 04:43:01 -03:00
Guillermo Rauch
c2e48f36b2 Changed; attempt to initialize all transports. 2011-06-18 04:42:33 -03:00
Arnout Kazemier
ab0c0d110c Added tests for the policy file server
Changed `update:` back to `set:` because it's more pretty
2011-06-18 01:13:44 +02:00
Arnout Kazemier
26a30c5863 Added WIP flashsocket 2011-06-17 23:10:23 +02:00
Arnout Kazemier
070d76d1d5 Added test suite, updated set to update and enabled it in enable and disable commands 2011-06-16 22:51:25 +02:00
Arnout Kazemier
7646e09a1d receive updates of config changes 2011-06-16 22:31:53 +02:00
Guillermo Rauch
99ab97af6d Changed; custom browser client handler is now a middleware-like function.
Changed; client can be disabled altogether.
Changed; made client minification optional.
Changed; made client etag serving optional.
Added appropriate new tests.
2011-06-16 13:37:26 -03:00
Guillermo Rauch
81dedf11d2 Fixed; keep scope for Manager#configure. 2011-06-16 13:34:01 -03:00
Guillermo Rauch
028487a013 Changed; leveraged .get instead of .set with one argument. 2011-06-16 13:28:48 -03:00
Guillermo Rauch
d6a01b56f5 Added new browser client options. 2011-06-16 13:28:14 -03:00
Guillermo Rauch
9cc1e775c1 Added handshaken instrumentation 2011-06-12 19:49:39 -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
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
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
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
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
7970815a54 Updated default timeouts.
Added error handling for JSONP handshake.
2011-05-30 11:37:20 -03:00
Guillermo Rauch
1726da4ca3 Added support for json-p handshake. 2011-05-24 22:53:42 -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
30ceabf10f Removed __io counter in incoming sockets. 2011-05-15 19:06:21 -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
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
34a701fb7f Changed; initialize default namespace with Manager#for instead of manually.
Changed; perform error handling for Store#isHandshaken.
Added; handle manual disconnect urls.
Changed; make sure to initialize a socket for all namespaces when a client connects.
Changed; delegate packet handling to the appropriate SocketNamespace.
Changed; cache regular expression for checkRequest method.
2011-05-08 20:28:16 -07:00