Commit Graph

313 Commits

Author SHA1 Message Date
nkzawa
1472a79884 remove the compress option from control packets 2015-12-01 14:28:33 +09:00
nkzawa
b56603169a add threshold for permessage-deflate 2015-12-01 14:21:53 +09:00
nkzawa
5092c4fc95 don't compress control packets 2015-11-29 23:27:08 +09:00
Damien Arrachequesne
cf9b0298a1 Add hasOwnProperty checks 2015-11-23 15:13:19 +01:00
Guillermo Rauch
057f32d195 Merge pull request #318 from amiuhle/cookie-path
Cookie path
2015-11-21 10:47:26 -08:00
Guillermo Rauch
b79830edd7 Merge pull request #348 from nkzawa/patch-7
Fix polling transports and add tests for closing transports
2015-11-18 10:41:15 -08:00
Guillermo Rauch
8163660cda Merge pull request #338 from nkzawa/patch-2
Call res.end() when polling error
2015-11-18 10:40:50 -08:00
Naoyuki Kanezawa
6a85f8e31a Merge pull request #353 from DavidCai1993/patch-1
Fix a small typo
2015-11-18 23:23:14 +09:00
Guillermo Rauch
fb811bf200 Merge pull request #305 from lbdremy/fix/set-encoding-before-listening-on-data
Set encoding of the request to utf8 before listening on data events
2015-11-16 13:27:28 -08:00
nkzawa
02f9ed8173 remove listeners upon clearTransport 2015-09-30 05:26:51 +09:00
DavidCai
829c4b5ec1 Fix a small typo
Fix a small typo
2015-09-24 15:03:57 +08:00
nkzawa
66d85e4a5c add tests for closing transports 2015-09-09 03:55:32 +09:00
nkzawa
4bce72c160 call onClose and add close timeout on polling transport 2015-09-09 03:55:10 +09:00
nkzawa
deb7ae40a4 fix sockets can stay open when upgrade failed 2015-08-29 03:48:05 +09:00
Guillermo Rauch
90d3286dad Merge pull request #336 from apeace/bug/socketio-1910
Fixes socket.io#1910 by calling transport.close() on ping timeout
2015-08-27 13:20:50 -07:00
Guillermo Rauch
dafce5d36e Merge pull request #340 from nkzawa/patch-4
Ensure sockets are closed on error
2015-08-27 13:19:18 -07:00
nkzawa
5efbf46626 ensure sockets are closed on error 2015-08-21 03:37:49 +09:00
nkzawa
54617e994a fix transport readyState 2015-08-21 02:15:26 +09:00
nkzawa
8c018befe3 call res.end when polling error 2015-08-20 03:10:50 +09:00
Andrew Peace
8e1f063c54 Fixes socket.io#1910 by calling transport.close() on ping timeout 2015-08-06 15:43:00 -04:00
Naoyuki Kanezawa
c78c6d82f3 fix a test failure 2015-06-17 01:10:22 +09:00
Naoyuki Kanezawa
30d9d7fa6a fix wrong packet referring 2015-05-31 16:05:25 +09:00
zensh
df4331dd1a support custom socket id 2015-05-08 10:24:32 +08:00
Timo Uhlmann
0c28be9ba5 Test & doc for cookiePath 2015-04-03 15:05:56 +02:00
Timo Uhlmann
d227719cf9 Allow overriding the cookiePath 2015-04-03 14:50:29 +02:00
Remy Loubradou
98e5890591 Set encoding of the request to utf8 before listening on data events 2015-02-12 18:46:06 +01:00
Naoyuki Kanezawa
99b709cadc Merge branch 'master' into compression
Conflicts:
	package.json
2015-01-22 03:52:22 +09:00
Naoyuki Kanezawa
d11e17c8d7 support compression 2015-01-06 02:11:39 +09:00
Luigi Pinca
9526e0d27f polling: correctly abort the ongoing data request when closing transport 2015-01-03 21:13:43 +01:00
Guillermo Rauch
80aa1aaa49 Merge pull request #291 from lpinca/close/pending-request
polling: close the pending poll request when closing transport
2014-11-15 15:06:55 +09:00
Luigi Pinca
e754f7eb23 socket: flush the write buffer before closing the socket (fixes #293) 2014-10-25 22:04:16 +02:00
Luigi Pinca
1d8e074398 polling: close the pending poll request when closing transport 2014-10-24 17:23:32 +02:00
Luigi Pinca
00caf543b8 socket: allow upgrades if the socket is still in closing state
Fixes #284, courtesy of @3rd-Eden
2014-09-26 16:01:11 +02:00
Tony Kovanen
f9efb1eae6 Merge pull request #254 from pawelatomic/master
added missing support for XSS filters on IE
2014-09-25 23:51:48 +03:00
Guillermo Rauch
681b4fc27b server: ref fix by @nicokaiser 2014-07-30 01:42:01 -07:00
Guillermo Rauch
01e173c8d5 server: fix ws memory leak (fixes #268) 2014-07-29 17:35:32 -07:00
Tony Kovanen
15afd3e2c3 Cache remote address in handshake since it might be lost later. 2014-07-19 04:47:38 +03:00
Dainis Tillers
c998d68631 Merge branch '1.1.1_newline_escape_fix' into newline_escape_fix 2014-06-13 15:06:45 +03:00
Dainis Tillers
de0b4a9d4a Fixed - previously any json message which contained a newline would fail to parse as it would replace escaped newline incorrectly 2014-06-13 15:03:46 +03:00
Guillermo Rauch
2ec3d89d4b Merge pull request #213 from defunctzombie/server_attach
add Server.attach method
2014-06-04 11:16:57 -07:00
Roman Shtylman
b8366057d2 lib: remove unused file 2014-06-04 13:45:48 -04:00
Roman Shtylman
48f006f947 make require('engine.io')() return a new Server instance
fixes #212
2014-06-04 13:45:48 -04:00
Roman Shtylman
cb2b80afd9 remove lib/index.js
Needless level of indirection which blocks actually reading the
important parts of the code.
2014-06-04 13:45:47 -04:00
Roman Shtylman
d3ed8418a8 remove unused require 2014-06-04 13:45:47 -04:00
Roman Shtylman
d74f93e4f9 add Server.attach method
This method does what engine.attach use to do but is now on the
instantiated server instance. This makes it possible to create engine.io
servers without yet attaching them to any active http server.

When creating a project which will server static files/pages alongside
engine.io on the same domain/process this makes it easier to separate
logic into files without having to pass around the http server.
2014-06-04 13:45:43 -04:00
Mark Mokryn
b98406a678 fix GH-211, set CORS headers when sending error message 2014-06-04 03:21:11 +03:00
Pawel
5676699a1c added missing comment about Content-Type header 2014-05-21 11:21:32 +02:00
Pawel
bd42b1ee1e added missing support for XSS filters on IE
issue #252
2014-05-21 11:14:56 +02:00
Guillermo Rauch
10261c5211 removed flashsocket, moving to userland 2014-05-17 15:24:40 -07:00
Guillermo Rauch
76628a0d9e socket: removed unneeded clearTimeout (fixes #250) 2014-04-26 10:50:27 -07:00