Commit Graph

157 Commits

Author SHA1 Message Date
Tony Kovanen
43721adf2d Merged current master 2014-02-19 18:35:05 +02:00
Guillermo Rauch
746f4cfa30 Revert "don't override empty opts.port"
This reverts commit 1bf90f5aaa.
2014-02-17 14:52:11 -08:00
Julian Salazar
1bf90f5aaa don't override empty opts.port 2014-02-17 14:38:10 -08:00
Tony Kovanen
d269acd2ab User can now pass in an onlyBinaryUpgrades option to disable upgrading to a transport that doesn't support binary from one that does to avoid the overhead of base64 encoding 2014-02-16 22:55:23 +02:00
Guillermo Rauch
0a3c521939 Merge pull request #243 from mokesmokes/sslws
Enable a direct websocket connection if the previous websocket connection ...
2014-02-15 13:14:50 -08:00
Mark Mokryn
76615fecc4 remember websocket upgrade 2014-02-15 17:48:02 +02:00
Mark Mokryn
facf40ad9b emit socket upgrade event after upgrade done 2014-02-09 22:12:34 +02:00
Guillermo Rauch
2b0b281f68 Merge pull request #239 from mokesmokes/closefix
fix GH-207
2014-02-09 08:46:32 -08:00
Tony Kovanen
1c1cfc1f9c Using url parameter for communicating the need for base64 instead of upgrade packet for WebSocket 2014-02-03 02:33:14 +02:00
Tony Kovanen
1067ae80d3 WebSocket's support for binary is now checked, and base64 is used when there is no binaryType. If WebSocket doesn't support binary, this is communicated to the server through the upgrade packet. 2014-02-02 14:44:02 +02:00
Tony Kovanen
dc4cab5619 Binary support 2014-02-01 01:52:41 +02:00
Bruce Lee
0df20215b4 fix captcha in comment 2014-01-27 18:01:30 +08:00
Mark Mokryn
365bc471a5 undo removal of onclose for websocket api compattibility 2014-01-26 23:39:03 +02:00
Mark Mokryn
b583fe4a51 fix GH-207 2014-01-26 21:01:38 +02:00
Guillermo Rauch
9ce2dcd08c style 2014-01-17 10:41:02 -08:00
mokesmokes
c2d547be54 Fix GH-224, remove sockets array 2014-01-08 20:48:49 +02:00
Guillermo Rauch
fa6c0c9fed socket: emit upgrade errors as upgradeError instead of error 2014-01-05 19:39:57 -03:00
Guillermo Rauch
1ab40e794e socket: more instrumentation for transport creation 2013-12-30 15:25:58 -03:00
Guillermo Rauch
9811a66204 socket: allow explicit false for timestampRequests 2013-12-30 15:25:42 -03:00
Guillermo Rauch
53da167033 socket: accept null as first argument 2013-12-30 15:25:25 -03:00
Guillermo Rauch
cfb719c940 socket: style 2013-12-30 15:23:42 -03:00
Nathan Rajlich
fe935edf97 socket: pass through the agent option to the Transport 2013-08-22 22:14:56 -07:00
Nathan Rajlich
43414294dd use updated component/global API 2013-08-22 21:46:49 -07:00
Nathan Rajlich
5ee23e8e41 use "component/global" 2013-08-22 12:01:28 -07:00
James Bowes
604e4ce0cb Don't lose packets writen during upgrade after a re-open
After a close, reset the prevBufferLen along with the buffers,
so a drain event after upgrade won't remove any packets that have been
queued up during upgrading.
2013-07-31 15:54:06 -03:00
Nathan Rajlich
9edbe83d6d socket: use a consistent "debug" name for socket.js 2013-07-25 16:16:45 -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
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
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
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
Guillermo Rauch
5baecf5cc6 socket: implement qs support for string 2013-03-16 09:19:34 -07: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
Malcom Gilbert
04b3da0944 remove uid qs 2013-02-15 19:32:29 -05:00