Arnout Kazemier
adde74610e
Updated the README to reflect the API updates. Added .once support and support for .connect(fn);
2011-03-09 09:46:25 +01:00
Arnout Kazemier
2b48f93d46
First basic implemenation of .once but still need to figure out a way to also have the .once removed as it's wrapped in a function. Anyways this alone is enough to close bug #103 . Because we now have a once listener we can easily fix #38
2011-03-08 23:06:41 +01:00
Arnout Kazemier
8e91094cba
MOAN, Now, i finally got the html working again... and than i start breaking the flashsocket.. >_< DAMN you privates
2011-03-08 17:02:30 +01:00
Arnout Kazemier
63ce0051be
Updated the documentation in the README
...
Added reconnectionAttempts to the reconnecting event.
Delete redoTransports property when we reset.
2011-03-07 11:06:06 +01:00
Arnout Kazemier
484c27ea4c
Merge branch 'master' of git://github.com/LearnBoost/Socket.IO into reconnect
...
Conflicts:
bin/build
2011-03-06 19:52:34 +01:00
Arnout Kazemier
d69a8ce577
Removed once, because it's not that easy to remove the events you attach. Because when call our reset function, you also want to remove all attached listeners we required for the reconnect functionality. And, it's that bad if they are called multiple times.
2011-03-06 19:30:02 +01:00
Guillermo Rauch
83aa03900b
Fixed; different port now considered cross-domain.
2011-03-06 00:05:45 -08:00
Arnout Kazemier
01cbb21692
Updated the readme with a new event.
...
Updated the lib/socket with a new event.
Removed todo, as all is implemented.
Generated new builds
2011-03-05 21:51:55 +01:00
Arnout Kazemier
cd0b83a76a
Inital draft of reconnection support.
...
This features some additons to the socket.io code, and fixing some inconsistencies.
2011-03-04 16:43:13 +01:00
Martin Kreichgauer
0a1a93b484
Reference a local copy of this.io internally
2011-02-09 12:00:47 -08:00
Daniel Beardsley
686e1d1dfa
Fixed the broken tryTransportsOnConnectTimeout option
...
and added the 'connect_failed' event after the last available transport fails to connect within the timeout
The function was re-creating the list of transports each time the timeout was hit, effectively only continually retrying the second transport, and never making it past that.
2010-12-26 01:42:18 -08:00
Daniel Beardsley
24358ae3f0
Add 'connecting' event emit on each connection attempt.
2010-12-26 00:57:53 -08:00
Guillermo Rauch
e89e20eada
Fixed connect timeout being fired after an explicit disconnect. Thanks @mbrevoort
2010-12-23 17:15:53 -08:00
Guillermo Rauch
f1332af1ee
Renaming fire to emit and making a copy of events first (thanks @fjakobs)
2010-12-23 15:00:27 -08:00
Guillermo Rauch
e31a3beeed
Fixed semicolons (thanks SINPacifist)
2010-10-20 19:21:31 -03:00
Guillermo Rauch
d8da8efe91
Added io.util.merge for options merging. Probably should be recursive at some point. Thanks SINPacifist
2010-10-20 19:18:19 -03:00
Guillermo Rauch
336331a32c
Make sure not to try other transports if the socket.io cookie was there
2010-09-25 11:06:22 +02:00
Guillermo Rauch
ef13f123ba
Oops
2010-09-20 16:28:21 -07:00
Guillermo Rauch
9501cb1197
Make sure not to abort the for loop when skipping the transport
2010-09-20 16:26:00 -07:00
Guillermo Rauch
f6d29b62a5
Fix for this inside of the timeout
...
Build
2010-09-20 15:59:01 -07:00
Guillermo Rauch
c2917c7989
Connect timeout ( fixes #34 )
...
Try different transports upon connect timeout (fixes #35 )
2010-09-20 15:53:29 -07:00
Guillermo Rauch
c73d292d9e
Restored rememberTransport to default
2010-09-20 15:40:52 -07:00
Guillermo Rauch
7f5b56ab78
Make sure disconnect event is only fired if the socket was completely connected, and it's not a reconnection attempt that was interrupted.
2010-09-02 12:23:56 -07:00
Guillermo Rauch
7231783551
Force disconnection if .connect() is called and a connection attempt is ongoing
2010-09-02 12:14:00 -07:00
Guillermo Rauch
a646824285
Upon socket disconnection, also mark connecting as false
...
.connecting flag in transport instance
Make sure .connecting is cleared in transport
2010-09-02 12:01:08 -07:00
Guillermo Rauch
750f746f60
Moved timeout default into Transport
2010-09-01 02:05:55 -07:00
Guillermo Rauch
cc05094d29
Set timeout defaults based on heartbeat interval and polling duration (since we dont do heartbeats for polling)
...
Check for msgs.length _onData
2010-08-31 19:49:12 -07:00
Guillermo Rauch
4c4bec9f44
Removed unused client option (heartbeatInterval)
2010-08-31 19:46:07 -07:00
Guillermo Rauch
b2f92acbbe
Disconnection handling upon failure to send a message through xhr-* transports.
...
Clean up internal xhr buffer upon disconnection
Clean up general buffer in Socket upon disconnection
Mark socket as disconnected
2010-08-31 19:18:04 -07:00
Guillermo Rauch
41ad4057f5
Fix for .fire on IE being called without arguments ( fixes #28 ) + build
2010-08-30 18:42:09 -07:00
Guillermo Rauch
596c39e64b
JSONP Polling transport
...
Some small changes for xdomain XHR feature detection
2010-08-26 15:44:39 -07:00
Saikat Chakrabarti
cb000bfe4b
Fixing a few dangerous loops that otherwise loop into properties that have been added to the prototype elsewhere.
2010-08-04 17:22:03 -07:00
Guillermo Rauch
c5f990c9d6
Fix for queuing before socket is connected.
...
Make sure XHR-based transports can handle arrays of messages
2010-08-01 11:24:18 -07:00
Guillermo Rauch
2fe9fec1ef
Temporarily changed default for rememberTransport
2010-07-29 10:37:00 -07:00
Guillermo Rauch
c2da5a06aa
Fix for event firing
2010-07-28 16:40:07 -07:00
Guillermo Rauch
a91013ffd9
Server > Socket typo
2010-07-28 16:04:49 -07:00
Guillermo Rauch
d94ff19cad
Fixed leaked global
2010-07-28 11:34:38 -07:00
Guillermo Rauch
587c579504
Implementation of buffering for XHR send messages
...
XHR sending is now handled exclusively by XHR.js
HTMLFile inherits from XHR for POST handling
Implemented heartbeats echoing
Events integrated directly into socket.js
New default method to add events is `on`.
Added aliases for old event handling methods
Simplified utilities / removed legacy code
Updated build.js
Actually implemented the private method _get for XHR transports (we were overriding connect() before)
Updated example/API
2010-07-21 23:16:03 -07:00
Guillermo Rauch
e67d6544d1
Removed object, options, json dependencies
...
Simplified classes
Bump version to 0.5
2010-07-19 14:49:31 -07:00
Guillermo Rauch
8d19f82c9f
Added checks for cross-domain in transports
...
Added support for XDomainRequest (IE8)
2010-06-01 08:38:20 -03:00
Guillermo Rauch
7bb7be23d1
Build updated
...
Updated copyrights
2010-05-26 21:19:02 -03:00
Guillermo Rauch
28c4583255
Server events removed
...
New build
2010-04-30 08:34:21 -03:00
Guillermo Rauch
fd46282c95
Replaced JSON with Crockford's
2010-04-01 19:43:51 -07:00
Guillermo Rauch
4344190017
JSON util fix
2010-04-01 18:29:05 -07:00
Guillermo Rauch
5a5c46e3c6
JSON util fixes
2010-04-01 17:38:21 -07:00
Guillermo Rauch
a8290043b7
Fixes default port
...
If host not present defaults to document.domain
2010-03-28 03:36:12 -07:00
Guillermo Rauch
5cebe02f5d
Builder now puts a notice at the top of the file
...
Fixed indentation
2010-03-18 20:50:31 -07:00
Guillermo Rauch
16e1f3560c
- No longer generating the minified version (was confusing some people)
...
- Added node-based builder
- Fix for missing trailing ; in oo.js
- Added copyright headers
2010-03-18 19:07:47 -07:00
Guillermo Rauch
388dd928f3
io.util.Class renamed to ioClass
2010-03-17 13:10:27 -07:00
Guillermo Rauch
0393369542
Namespaced oo to avoid conflicts.
...
Removed js-oo as submodule and copied to util/.
2010-03-17 12:53:46 -07:00