Commit Graph

78 Commits

Author SHA1 Message Date
Arnout Kazemier
2d84ede3e4 don't emit errors when we are reconnecting 2011-06-18 22:17:33 +02:00
Arnout Kazemier
6a9207369c Added flashsocket to the /transports.
The transport check now sends the socket instance so we can leverage methods
of that inside the check.
Updated the builder to also include flashsocket
2011-06-18 16:07:05 +02:00
Arnout Kazemier
a67e909a0a Removed console.log 2011-06-17 22:39:41 +02:00
Arnout Kazemier
cad92b900a Emit changes using one single method to both Socket and all namespaces 2011-06-15 21:51:27 +02:00
Guillermo Rauch
f2cad28b93 Added packet buffering capabilities to Socket#packet. 2011-06-13 12:30:53 -03:00
Guillermo Rauch
7ec45b516a Added; process buffer after opening socket. 2011-06-13 12:17:54 -03:00
Guillermo Rauch
9218020111 Fixed; make sure to send connect packet after opening sub-socket. 2011-06-13 12:13:56 -03:00
Guillermo Rauch
240b2cd094 Added buffer and namespaces data structures initialization to Socket constructor. 2011-06-13 12:13:35 -03:00
Guillermo Rauch
f09ba3ba94 Removed onConnect upon socket open. 2011-06-12 21:34:44 -03:00
Guillermo Rauch
80e9edc6a7 Removed onConnect call in handshake since we now have connect packets for all
namespaces, including `''`.
Changed; style fixes
2011-06-12 21:31:10 -03:00
Guillermo Rauch
56c67784d4 Added Socket#packet.
Removed Socket#send.
2011-06-07 17:11:54 -03:00
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