Guillermo Rauch
c6a883c8a9
Fixed dispatching to clients that are disconnected.
2011-06-30 12:56:42 -03:00
Thomas Holloway
3e0239ed07
Quick fix to issues #313 to check if an address exists on a connection
2011-06-29 12:29:00 -05:00
Guillermo Rauch
abc3723b54
Changed; make sure to pass client store expiration to Store#destroyClient.
2011-06-29 11:33:24 -03:00
Guillermo Rauch
ba10280071
Added a client store expiration option with a 15 seconds default.
2011-06-29 11:32:47 -03:00
Guillermo Rauch
2fd406f7b2
Fixed; make sure to clean up store upon client disconnect.
2011-06-29 07:49:22 -03:00
Arnout Kazemier
78b546e185
Incorporated feedback from @guille
2011-06-28 20:37:58 +02:00
Arnout Kazemier
e7deb32a6f
Create a new branch for fixing #287
2011-06-28 20:23:13 +02:00
Guillermo Rauch
f2212f6962
Make handshake data extensible
2011-06-28 09:27:07 -03:00
Guillermo Rauch
6b6f17b098
Added handshakeData#address
...
Added handshakeData#secure
2011-06-28 08:29:00 -03:00
Guillermo Rauch
b58c2e4afe
Added handshake data normalizer function.
...
Changed; Make sure we store the `handshake data` in the hash of connected clients.
2011-06-28 07:36:35 -03:00
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