Commit Graph

109 Commits

Author SHA1 Message Date
Arnout Kazemier
520aeaddf4 Made sure no errors where thrown in IE if there isn't a flash fallback available. 2010-09-03 13:22:55 +02: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
743ab80f80 Correct sessionid checking 2010-09-01 13:22:56 -07:00
Guillermo Rauch
6a7023da9d Clear sessionid upon disconnection 2010-09-01 13:18:37 -07:00
Guillermo Rauch
70dde951be Remove _xhr and _sendXhr objects 2010-09-01 11:44:43 -07:00
Guillermo Rauch
a848324d2a Added note about htmlfile cross-domain 2010-09-01 02:12:40 -07:00
Guillermo Rauch
750f746f60 Moved timeout default into Transport 2010-09-01 02:05:55 -07:00
Guillermo Rauch
5548e916ad Added timeout
Remove callbacks on _onDisconnect and call abort()
Added placeholder for direct disconnect in XHR
2010-09-01 01:59:42 -07:00
Guillermo Rauch
a9d5285509 Timeout logic (fixes #31)
Build
2010-08-31 19:52:37 -07:00
Guillermo Rauch
29ce06f8d9 Don't check for data length to trigger _onData, since most transports are not doing it 2010-08-31 19:49:56 -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
6731b2d779 Added onDisconnect call if long poll is interrupted 2010-08-31 19:39:50 -07:00
Guillermo Rauch
56ee90d0bd Polling calls _get directly as opposed to connect()
Build
2010-08-31 19:30:54 -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
922a96d28c Opera 10 support
Some README fixes
 - Added API example at the top
 - Added opera
2010-08-31 13:05:41 -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
4697574a68 JSONP IE6-7 fixes 2010-08-30 15:22:11 -07:00
Guillermo Rauch
1561b52fee JSONP Polling send fix for IE (only tested in IE8) 2010-08-29 18:27:14 -07:00
Guillermo Rauch
bf0b541129 JSONP polling completed 2010-08-29 16:39:36 -07:00
Guillermo Rauch
c0c5a7e653 Missing inherit call 2010-08-26 16:50:56 -07:00
Guillermo Rauch
bfdb66eac2 Added jsonp-polling to the build script
Version set to 0.6
2010-08-26 16:11:43 -07:00
Guillermo Rauch
596c39e64b JSONP Polling transport
Some small changes for xdomain XHR feature detection
2010-08-26 15:44:39 -07:00
Guillermo Rauch
8d19a4ced3 Android compatibility. Updated web-socket-js. Thanks @sleavitt, @gimite 2010-08-26 13:31:04 -07:00
Guillermo Rauch
8e9b16ff15 Automatic JSON decoding support 2010-08-23 20:59:14 -07:00
Guillermo Rauch
37f0194246 Automatic JSON encoding support for objects 2010-08-23 20:48:57 -07:00
Guillermo Rauch
cd30cbf046 Adding test for android for delaying the connection. 2010-08-12 23:52:28 -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
dd2e23685a Support for initializing io.Socket after the page has been loaded 2010-08-02 13:03:13 -07:00
Guillermo Rauch
aed0fc8ef5 Loading bar fix for iPhone
Some readme fixed and started keeping a changelog
Added io.util.load and io.util.ios
0.5.4
2010-08-02 12:56:27 -07:00
Guillermo Rauch
a3707afc5b Removed onClose from xhr 2010-08-02 09:52:13 -07:00
Guillermo Rauch
6884a643e8 Changed onreadystatechange/send order 2010-08-01 17:14:46 -07:00
Guillermo Rauch
a8efecaa56 0.5.3 2010-08-01 14:04:23 -07:00
Guillermo Rauch
40e06d2f73 Restorted _checkSend (accidentally removed) 2010-08-01 14:03:53 -07:00
Guillermo Rauch
a9d2c738e2 Fixed method duplication 2010-08-01 12:32:20 -07:00
Guillermo Rauch
9ac738be4a 0.5.2
Build
2010-08-01 11:26:05 -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
43259d4373 Check for messages to send before trying to send yo 2010-07-28 21:04:08 -07:00
Guillermo Rauch
3579c1ce93 Fixed buffered posting for XHR transports 2010-07-28 20:59:36 -07:00
Guillermo Rauch
ad76f786b4 Replacing unicode characters for flashsocket 2010-07-28 19:45:27 -07:00
Guillermo Rauch
1c9351c6cf Fix onHeartbeat internal call reference 2010-07-28 18:33:44 -07:00
Guillermo Rauch
9ce1d7b272 Changed frame unicode character 2010-07-28 16:47:46 -07:00
Guillermo Rauch
c2da5a06aa Fix for event firing 2010-07-28 16:40:07 -07:00
Guillermo Rauch
e469528f4e Removed reference to .messages (legacy JSON decoding) 2010-07-28 16:35:28 -07:00
Guillermo Rauch
c42d188872 Make sure websocket transport name is lowercase 2010-07-28 16:28:39 -07:00
Guillermo Rauch
13976ac33e Make sure parent constructors are called properly
Fix for Flashsocket not calling Websocket constructor
2010-07-28 16:08:09 -07:00
Guillermo Rauch
a91013ffd9 Server > Socket typo 2010-07-28 16:04:49 -07:00