Commit Graph

171 Commits

Author SHA1 Message Date
Arnout Kazemier
8dca195ce3 Added some JSDocs 2011-03-10 22:23:24 +01:00
Arnout Kazemier
6f3d47bd9c Work in progress of converting the files to JSDoc. Finished the transport.js but and started work on the other files. 2011-03-09 23:06:33 +01:00
Arnout Kazemier
d6665e9a1b Removed double var statements.. 2011-03-09 17:01:39 +01:00
Arnout Kazemier
0fcc9c07e9 Removed globals that where introduced by commit: 0a1a93b484 2011-03-09 16:25:48 +01:00
Arnout Kazemier
bddffb1e43 Removed pointless flashcheck codes. We are already bundling the SWFObject inside of the Socket.io.js
This functionality contains checking for flash availablity.

The new Flash check will also check on Flash version number as web-socket-js requires flash 10.0+
2011-03-09 15:59:24 +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
7f6ca6eb17 This should fix https://github.com/LearnBoost/Socket.IO/issues/92 because the client will be broken anyways without JSON support we might as well throw an error. 2011-03-08 22:17:20 +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
Guillermo Rauch
2921f50799 Merge branch 'master' of https://github.com/substack/Socket.IO into substack-master 2011-03-05 23:46:11 -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
Arnout Kazemier
5952bd965b Upgraded the build process to also produce a minified build.
The minification was done using uglifyjs and included in the vendor folder.
2011-03-04 10:47:38 +01:00
Arnout Kazemier
1d80b62da9 Removed unused files. + applied patch for the WebSocket flash fallback,
It throws errors if we are not listening to the onopen event. Fixed
in my personal web-socket-js and send pull request: https://github.com/gimite/web-socket-js/pull/60

But in order to use the latest version of web-socket-js I have applied it
here.
2011-03-04 10:18:56 +01:00
Arnout Kazemier
d0189b0dc0 Updated the flash fallback to the latest version,
This no longer requires the use of FLABridge, so we can save allot filesize
2011-03-04 09:25:46 +01:00
James Halliday
8494eea2bc fix to make io resolve where this !== window so it works with module bundling 2011-02-26 16:13:33 -08:00
Martin Kreichgauer
0a1a93b484 Reference a local copy of this.io internally 2011-02-09 12:00:47 -08:00
Guillermo Rauch
e3376a5251 Release 0.6.2 2011-02-05 11:37:43 -08:00
Guillermo Rauch
7515915957 Fixed problem with xhr-multipart buffering 2011-02-05 11:35:58 -08:00
Guillermo Rauch
4e95643a46 Updated Flash websocke transport 2011-02-05 11:35:33 -08:00
Guillermo Rauch
badb0ac883 Removed submodule 2011-02-05 11:35:15 -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
69991be5cc 0.6.1 2010-12-23 20:51:04 -08:00
Guillermo Rauch
3b352ecfea Fire 'error' event when socket.onerror fires (thanks @tomyan) 2010-12-23 17:41:27 -08:00
Guillermo Rauch
50add1ae02 Corrected position of WEB_SOCKET_SWF_LOCATION check 2010-12-23 17:37:48 -08:00
Guillermo Rauch
d74c7f1199 Allow to specify WEB_SOCKET_SWF_LOCATION before socket.io is loaded. Thanks @saikat 2010-12-23 17:36:14 -08:00
Guillermo Rauch
763ce20da0 Better readyState read 2010-12-23 17:27:19 -08:00
Guillermo Rauch
7c90584c07 Wrapped XHR abort() in a try-catch clause 2010-12-23 17:26:24 -08:00
Guillermo Rauch
f75464bb6d send(null) for FF2/3 2010-12-23 17:24:58 -08:00
Guillermo Rauch
280c999e3a Removed XHR onload handler 2010-12-23 17:23:58 -08:00
Guillermo Rauch
66599a6591 Removed onload handler cleanup 2010-12-23 17:21:50 -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
7a5197c1e7 Make sure to only destroy if the _iframe was created 2010-11-01 12:58:25 -03:00
Guillermo Rauch
9fb0b3ec8a Fixed io.util.merge 2010-10-30 21:28:48 -03:00
Guillermo Rauch
1f06916c4e Added io.utils.merge
Removed flashsocket onClose logic since its handled by connectTimeout
Added socket checks when disconnecting / sending messages
2010-10-28 19:15:08 -03: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
c226b89c29 Removed unnecessary onClose handling, since this is taken care by Socket (thanks SINPacifist) 2010-10-20 19:12:15 -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
33c40b96d1 Temporarily reverting to /socket.io/ to serve the SWF 2010-09-24 06:03:58 +02:00
Guillermo Rauch
669ff4c038 Updating web-socket-js 2010-09-20 17:58:11 -07: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