Arnout Kazemier
5be17ed500
Connect event should now fire again..
2011-06-07 21:15:22 +02:00
Guillermo Rauch
c83764f99f
Fixed error and disconnect handling for subsockets.
...
Added onConnect call in onOpen.
2011-06-06 12:36:19 -03:00
Vladimir Dronnikov
2ddd53d46c
WS#connect -> WS#open
2011-06-06 08:02:17 -04:00
Vladimir Dronnikov
0c52c5c3b2
cleanup
2011-06-06 07:40:41 -04:00
Vladimir Dronnikov
e365ae8ec7
typo. Socket#onConnect() is given use
2011-06-06 07:28:09 -04:00
Vladimir Dronnikov
4e5f83587a
Merge branch 'develop' of github.com:3rd-Eden/Socket.IO into develop
2011-06-06 04:52:24 -04:00
Arnout Kazemier
f864d2ec72
Fixes wrong inhert & mixin arguments + added io.sockets
2011-06-06 10:46:00 +02:00
Vladimir Dronnikov
d1f1ce4575
this typos
2011-06-06 03:40:31 -04:00
Vladimir Dronnikov
e71b2b5644
here we go again -- typos mostly
2011-06-02 08:20:07 -04:00
Vladimir Dronnikov
c6d938babe
another portion of typos
2011-06-02 06:57:57 -04:00
Vladimir Dronnikov
824282d382
typos
2011-06-02 06:34:41 -04:00
Guillermo Rauch
6267a02056
Refactored Socket
2011-05-30 11:31:24 -03:00
Arnout Kazemier
ae05abc44a
Added better descriptions and examples + typo fixes
2011-03-13 00:24:09 +01:00
Arnout Kazemier
c63efa3a36
More modifications to the JSDocs
2011-03-11 16:42:34 +01:00
Arnout Kazemier
d484cb7f78
More JSDoc documentation, replaced the /*! with /** in the licensen headers for dox compatiblity
2011-03-11 13:13:12 +01:00
Arnout Kazemier
bdc37c1650
More documentation
2011-03-10 17:04:53 +01:00
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