Commit Graph

382 Commits

Author SHA1 Message Date
Stash
cedca5699f Emit errors thrown by xhr.send() 2013-07-29 12:31:34 -07:00
Nathan Rajlich
9edbe83d6d socket: use a consistent "debug" name for socket.js 2013-07-25 16:16:45 -07:00
Naoyuki Kanezawa
d3d1375722 fix to check readyState 2013-06-22 13:24:29 +09:00
Guillermo Rauch
3536a45941 transports: improve polling orderly close (fixes #164) 2013-06-15 16:23:34 -07:00
Guillermo Rauch
76ae6d98e0 socket: ignore further transport communication upon onClose 2013-06-15 16:23:11 -07:00
Guillermo Rauch
51ac4b9879 socket: added missing socket#onerror support 2013-06-15 16:22:55 -07:00
Guillermo Rauch
d73668b8b1 socket: don't call socket#onclose if previous state was not open 2013-06-15 15:54:59 -07:00
Guillermo Rauch
96e8eb116d socket: code style 2013-06-15 15:54:51 -07:00
Guillermo Rauch
f9c42795ea transports: really fix iOS crash issue 2013-06-06 17:40:55 -07:00
Guillermo Rauch
97fb63be8e Merge pull request #150 from jphire/fix/104_improve_ping_api
Fix/104 improve ping api
2013-05-25 09:23:28 -07:00
Sweet Song
da88410d3d Does not emit close on incorrect socket connection 2013-05-10 16:16:31 -04:00
Gavin Uhma
35c49c72e7 use indexof component for ie8 and below 2013-05-09 17:58:59 -03:00
Róbert Oroszi
df01aeaef9 should handle xdomain, if we are in the browser 2013-04-05 15:28:03 +02:00
Róbert Oroszi
5f8d4f2f0b hostname should be tested against host, + port strict equality 2013-04-05 15:23:03 +02:00
Janne Laukkanen
2e54dda152 use ping() in setPing() 2013-04-04 13:15:07 +03:00
Janne Laukkanen
0e12bcaf9b improve ping api 2013-04-04 13:15:07 +03:00
3rd-Eden
3c6eb2a177 Don't check against the window to detect node.js, wrap code in a try catch statement
and have it degrade gracefully.

Fixes #147
2013-03-26 21:41:00 +01:00
Matthew Mueller
07777168fb I *think* this is a typo.
Right now, whenever I try upgrading to WS, I get:

    Uncaught TypeError: Object #<Transport> has no method 'setInterval'

Did a quick search for WS.prototype.setInterval and I don't see it anywhere. Removing `this` makes the upgrade work correctly.
2013-03-23 19:07:28 -07:00
albertyfwu
17d2dc275c only flush if writeBuffer is length 0
in onClose, cleanup writeBuffer, callbackBuffer
2013-03-19 12:11:55 -04:00
albertyfwu
a14a0bf676 added drain event 2013-03-18 13:24:14 -04:00
albertyfwu
4998d01503 fix flush and flushComplete events 2013-03-17 22:18:33 -04:00
albertyfwu
3a499d1bac added documentation for send and flush, flushComplete events 2013-03-17 21:03:27 -04:00
albertyfwu
0062f4ae03 added flush event to Socket.flush 2013-03-17 20:56:10 -04:00
albertyfwu
c12c1e29fa fixed drain bug splicing with upgrading 2013-03-17 11:50:39 -04:00
albertyfwu
25d092ca98 changes 2013-03-17 02:17:24 -04:00
albertyfwu
c650d9ad55 added in delayed flushing/callbacks 2013-03-17 02:07:20 -04:00
albertyfwu
b4c3eb8a23 empty callbackBuffer 2013-03-17 01:56:08 -04:00
albertyfwu
d081750310 changed int to var 2013-03-17 01:52:27 -04:00
albertyfwu
994b569e86 add support for callbacks with socket.send() 2013-03-17 01:52:26 -04:00
albertyfwu
fdb95d579c changes 2013-03-17 00:52:27 -04:00
albertyfwu
1f6ee883cf changes 2013-03-17 00:49:50 -04:00
albertyfwu
f3710ff859 fixed websocket flush/drain loop 2013-03-17 00:45:25 -04:00
albertyfwu
71ed033698 removed irrelevant code 2013-03-16 23:43:43 -04:00
albertyfwu
74094e179e wrapped drain call, changed back to encodePacket, moved intervalCleanup to WS, ... 2013-03-16 23:43:42 -04:00
albertyfwu
aa5dec5831 added fake drain 2013-03-16 23:43:40 -04:00
albertyfwu
08740208ea fix featurecheck 2013-03-16 23:43:39 -04:00
albertyfwu
e652ead78f feature-check for bufferedAmount 2013-03-16 23:43:38 -04:00
albertyfwu
7d941af39b make sure to stop interval if transport closes 2013-03-16 23:43:37 -04:00
albertyfwu
05a0647e52 add 'drain' emit to WS 2013-03-16 23:43:35 -04:00
Guillermo Rauch
fb3dff6ab6 polling: consider the possibility of an event changing readyState 2013-03-16 12:24:34 -07:00
Guillermo Rauch
1f87063750 polling: abort payload loop if close packet is found 2013-03-16 12:15:08 -07:00
Guillermo Rauch
f9f0c1227e util: implemented simple qsParse 2013-03-16 09:19:48 -07:00
Guillermo Rauch
5baecf5cc6 socket: implement qs support for string 2013-03-16 09:19:34 -07:00
Guillermo Rauch
c8bc1d4984 Merge pull request #131 from shtylman/emitter
require 'emitter' versus 'emitter-component'
2013-03-13 09:57:33 -07:00
Roman Shtylman
6514cd9732 require 'emitter' versus 'emitter-component'
Use the github style dependency to just grab the emitter package from
github. Use the long form because short form is all sorts of broken with
npm.
2013-03-13 12:00:10 -04:00
Ryan Liu
39d34ea53f capitalized eio, added a comment saying that the protocol is an int, not a string 2013-03-05 19:00:26 -05:00
Ryan Liu
99a4601dcf added query.eio to take protocol version from parser. Also changed Socket.protocol to take that same protocol version 2013-03-05 18:09:41 -05:00
Ryan Liu
0435d1cf2a issue 83 IE9/10: returned if this.xhr was undefined 2013-03-05 14:39:44 -05:00
albertyfwu
1c54df627b changed callback function to have arguments of packet, index, total instead of packet, isDone 2013-02-24 22:18:07 -05:00
albertyfwu
4801248297 updated engine.io-client to work with new payload structure 2013-02-24 21:16:39 -05:00