Commit Graph

44 Commits

Author SHA1 Message Date
Julian Salazar
ef77af8c2f close() properly when triggered in connection handler 2014-02-20 01:06:41 -08:00
Guillermo Rauch
ab4ea948cc Merge pull request #218 from rase-/add/binary-support
Binary support
2014-02-18 17:28:57 -08:00
Tony Kovanen
20d06700c3 Removed the need to set any default values for binary support in transports 2014-02-18 23:56:01 +02:00
Tony Kovanen
a9a6f25e76 style 2014-02-18 23:33:22 +02:00
Tony Kovanen
8cd37f0839 Style 2014-02-15 09:15:12 +02:00
Nick LaGrow
468ca23339 Merge branch 'master' of https://github.com/LearnBoost/engine.io into upgrade 2014-02-08 12:11:35 -08:00
Nick LaGrow
17143bde09 Deny upgrade when proxy doesn't support websocket
Some proxies - such as nginx and squid - don't support websocket. The client attempting to upgrade its transport caused the engine.io connection to break (see GH-177). THe server now checks within handleRequest to see if the transport has changed without an upgrade request - if this is the case, the upgrade request is denied (defaults to polling) and the connection is maintained
2014-02-08 12:10:47 -08:00
Mark Mokryn
3b8d7863b8 Socket.request made a nonwritable Socket property set in constructor 2014-02-03 13:32:59 +02:00
Tony Kovanen
44159592c7 Using url parameter for communicating the need for base64 instead of upgrade packet for WebSockets 2014-02-03 02:31:48 +02:00
Tony Kovanen
dbe140c117 Binary support 2014-02-01 01:20:51 +02:00
Malcom Gilbert
51ede1ec38 adding test for faulty websocket request 2013-03-24 18:21:55 -04:00
Malcom Gilbert
0280352f88 sending error on transport creation failure due to bad request 2013-03-22 17:08:37 -04:00
Fedor Indutny
bb1f860239 server: send validation failure reason to clients 2012-11-01 00:35:49 +04:00
Guillermo Rauch
537fc62d8f server: don't assume sid is numeric 2012-10-06 19:56:36 -07:00
Nico Kaiser
587cb14972 Moved generateId into an external module
see f7d40d5f7b
2012-09-11 12:17:04 +02:00
Guillermo Rauch
79af5e17cc server: remove buffering from handleSocket 2012-08-26 18:13:49 -07:00
Guillermo Rauch
d1cbdfff77 server: applied new coding style 2012-08-26 18:13:39 -07:00
Guillermo Rauch
827875f481 sense: this makes more
This way all transports have a consistent constructor.
2012-08-06 16:28:12 -07:00
Guillermo Rauch
24e19fceee server: avoid passing websocket to non-websocket transports (fixes #24) 2012-08-06 16:24:44 -07:00
Guillermo Rauch
44fd1b97a1 server: implemented stronger id generator with collision detection 2012-08-06 09:17:11 -07:00
Guillermo Rauch
25b48dd152 server: replaced websocket.io with ws, now that it supports older drafts 2012-08-01 16:09:21 -07:00
Guillermo Rauch
c754f549f7 Added transport headers Set-Cookie injection 2012-07-03 14:19:28 -07:00
Andor Goetzendorff
556995470a add on('error') handler for websocket transport 2012-03-02 17:59:37 +01:00
Guillermo Rauch
014cf6e26d Tweaked default timeout and interval values. 2012-01-17 09:51:31 -08:00
Guillermo Rauch
18311196a2 Renamed Socket#upgrade to #maybeUpgrade 2012-01-15 22:17:54 -08:00
Guillermo Rauch
327aeee7bf Introduced upgradeTimeout. 2012-01-15 22:10:33 -08:00
Guillermo Rauch
496ce56f5f Fixed docs. 2012-01-14 09:32:52 -08:00
Guillermo Rauch
89d59598c8 Syntax cleanup. 2012-01-14 09:32:42 -08:00
Guillermo Rauch
bd7d01a190 Avoid incorrect debug output order. 2012-01-13 15:30:15 -08:00
Guillermo Rauch
615c555742 Improved instrumentation. 2012-01-04 15:40:36 -08:00
Guillermo Rauch
767d770e59 Added additional verification step: handshake is only over GET. 2012-01-04 15:40:21 -08:00
Guillermo Rauch
8e9d163666 Refactored onWebSocket to consider the possibility of a websocket handshake. 2012-01-03 10:36:10 -08:00
Guillermo Rauch
b58a5e830b Refactored handshake to allow ws and non-ws handshakes. 2012-01-03 10:35:33 -08:00
Guillermo Rauch
fa7bea93b5 Refactored handleRequest 2012-01-03 10:35:17 -08:00
Guillermo Rauch
35fa0f76db Added debug to handleRequest 2012-01-03 10:34:52 -08:00
Guillermo Rauch
5fcac6e437 Added debug to Server#close 2012-01-03 10:34:30 -08:00
Guillermo Rauch
2d53e5fd85 Implemented Server#close 2012-01-03 10:34:08 -08:00
Guillermo Rauch
c801ff13d5 Make sure to not include non-digits in generated id. 2012-01-03 10:33:13 -08:00
Guillermo Rauch
12ccb6fcf1 Fixed Server#verify 2012-01-03 10:32:49 -08:00
Guillermo Rauch
ba3a85cd31 Simplified transport upgrade possibilities computation 2012-01-03 10:32:25 -08:00
Guillermo Rauch
2819a0c4cf Make Server inherit from EventEmitter 2012-01-03 10:32:06 -08:00
Guillermo Rauch
9c5384f44b Do not cache transport names to allow modification of object.
Added clientsCount property
2012-01-03 10:31:29 -08:00
Guillermo Rauch
fb121a9474 Added debug for debugging 2012-01-03 10:31:01 -08:00
Guillermo Rauch
3a980d9e67 Added Server (manager) interface. 2011-12-29 13:13:38 -05:00