Tom Atkinson
b18f5b16df
[perf] Add all properties to the socket in the constructor ( #488 )
2016-10-20 18:29:32 +02:00
Marshall Thompson
6b2b3bdaaa
[chore] Use more-specific imports for StealJS compatibility ( #467 )
...
This allows browser loaders like StealJS to load this package without showing any errors or warnings in the console (since you the only way to check if a file exists from the browser it to request it, node-style folder assumptions can't be made without potential 404s.)
The package works fine with the StealJS build tools, since they're node based, but this lets allows it to work with the browser version.
2016-10-20 18:10:30 +02:00
Damien Arrachequesne
67ac4b7e1d
Revert "default rejectUnauthorized to true" ( #496 )
...
This reverts commit 2c55b278a4 , which breaks websocket transport under node v0.10 (#494 ).
2016-10-05 07:06:38 +02:00
Guillermo Rauch
2c55b278a4
default rejectUnauthorized to true
2016-03-30 08:30:14 -07:00
Diga Widyaprana
e2930f8aac
Eslint manual fix
2016-03-01 00:41:08 +08:00
Diga Widyaprana
fd90acf4b6
Eslint autofix
2016-02-29 20:43:08 +08:00
nkzawa
1096ca6f61
fix ipv6 support and add tests
2015-12-02 17:59:11 +09:00
hell
54f020ec1a
ipv6 url support
2015-12-02 15:54:17 +09:00
nkzawa
f848c0db6c
remove compress option from control packets
2015-12-01 15:36:29 +09:00
nkzawa
cc8200fd21
threshold for permessage-deflate
2015-12-01 15:31:31 +09:00
Guillermo Rauch
d6d4ec22fa
socket: remove duplicate declaration ( fixes #434 )
2015-11-19 09:26:34 -08:00
Foghost
5ffe4478fb
fix rejectUnauthorized bug
...
fix bug even I set rejectUnauthorized=false it also throw err 'unable to verify the first certificate'
2015-06-02 17:53:43 +08:00
Guillermo Rauch
67ca376946
Merge branch 'master' of github.com:Automattic/engine.io-client
2015-05-27 12:59:43 -07:00
Guillermo Rauch
6ac9ac438a
socket: clean up buffers right after close event, not on a different tick
2015-05-27 12:58:48 -07:00
Guillermo Rauch
54680e6bcc
change the semantics of the write callback for polling transports. fire upon flush, not drain
2015-05-27 12:57:03 -07:00
Luigi Pinca
f9d1becfba
socket: fix host parsing for IPv6 URLs
2015-05-02 15:17:13 +02:00
Guillermo Rauch
4f87aae6ee
socket: handle parser errors appropriately
2015-04-08 08:32:02 -07:00
Guillermo Rauch
40de4b1cc4
style
2015-04-08 08:29:22 -07:00
Guillermo Rauch
d31a3931ae
Merge pull request #379 from adrai/master
...
introduce extraHeaders (cookies)
2015-04-06 14:17:57 -07:00
Guillermo Rauch
fb7c1984e8
expose ping and pong events
2015-04-05 15:46:30 -07:00
Adriano Raiano
ed697edae6
do not special case cookies, introduce extraHeaders
2015-03-23 21:50:10 +01:00
Adriano Raiano
73970be23e
introduce cookies
2015-03-13 16:17:12 +01:00
Naoyuki Kanezawa
f0096f6cbd
Merge branch 'master' into compression
...
Conflicts:
package.json
2015-01-22 03:56:03 +09:00
Roman Shtylman
92e08eee01
fix reference to this (typo from self commit)
2015-01-11 16:59:55 -08:00
Guillermo Rauch
e3fe9a2f44
Merge pull request #366 from Automattic/fix-default-port
...
fix default port detection when host is specified
2015-01-11 16:33:12 -08:00
Roman Shtylman
bfc48ec4ad
fix default port detection when host is specified
...
This fixes an issue when a full url is specified (i.e.
http://service.com ) the port would be the port from the page and not the
uri string. This is easily exposed if using external engine.io servers
on a page served up by localhost:3000 or similar from a development
page.
2015-01-11 16:32:35 -08:00
Guillermo Rauch
d0e8643d05
Revert "migrate this usage to self to help with client side minification"
...
This reverts commit d725d91db2 .
2015-01-11 15:59:43 -08:00
Roman Shtylman
d725d91db2
migrate this usage to self to help with client side minification
...
`this` cannot be effectively minified but using a local self allows for
local minifcation.
2015-01-11 15:51:35 -08:00
Naoyuki Kanezawa
f6bf9f807f
support permessage-deflate
2015-01-06 03:20:08 +09:00
Tony Kovanen
f2a0d3b528
Add rest of the ssl related options found in https.request.
2014-11-24 04:57:51 -03:00
Tony Kovanen
66617e589f
Add options for SSL in ws and xhr.
2014-11-24 04:57:51 -03:00
Tony Kovanen
b462865bcb
Fixed transport close deferring logic.
...
Transport can still be upgrading after deferring until the drain event.
2014-10-05 03:01:50 +03:00
Naoyuki Kanezawa
866a56ed20
wait for buffer to be drained before closing
2014-10-04 21:57:35 +09:00
Guillermo Rauch
0097a5e255
Merge pull request #324 from nkzawa/patch-5
...
Defer close while upgrading a transport
2014-09-25 15:32:33 -07:00
yujiosaka
b1e1755a7d
disabled XDomainRequest as default and added enablesXDR option to enable it
2014-08-18 07:50:36 +09:00
Naoyuki Kanezawa
f9eed0ef32
check readyState in sendPacket and close on upgradeError too
2014-07-19 17:16:23 +09:00
Naoyuki Kanezawa
5a1ff69516
defer close while upgrading a transport
2014-07-18 04:45:13 +09:00
Tony Kovanen
42b1773713
style and close socket after assert
2014-06-23 19:48:09 +03:00
Tony Kovanen
2aa5c22823
Change constructor check to throw and try-catch
2014-06-23 19:32:35 +03:00
Tony Kovanen
389878b3cb
Rename noJSONP to jsonp (that can be set to false to disable jsonp)
2014-06-23 18:33:48 +03:00
Tony Kovanen
269bdfff23
Possibility to disable JSONP. Emitting an error if JSONP is the only available transport.
2014-06-23 02:04:48 +03:00
Reid Burke
4b40963f27
Upgrade component-emitter to 1.1.2, fix #305
...
Switch from depending on a tarball URL to the published
component-emitter package at its latest version.
Change all references to emitter module to the new
component-emitter name.
2014-06-04 14:52:42 -07:00
Guillermo Rauch
44b35738b8
Merge pull request #270 from j-salazar/noping
...
Don't ping when socket closed by open handler
2014-05-19 14:06:31 -07:00
Julian Salazar
7afd8c8273
Don't ping when socket closed by open handler
2014-05-19 06:23:58 -07:00
Guillermo Rauch
da07eb713b
removing flashsocket, moving to userland
2014-05-17 15:24:51 -07:00
Naoyuki Kanezawa
6def3f56ee
remove Socket#onopen
2014-05-02 15:18:33 +09:00
Guillermo Rauch
118073f2f2
Merge pull request #294 from rase-/fixerrors
...
Error handling fixes
2014-04-17 17:26:37 -07:00
Tony Kovanen
c12f44b5bd
Renamed removeAllListeners to cleanup
2014-04-18 01:25:08 +03:00
Tony Kovanen
c67afb549e
Not emitting an upgrade error when upgrading was in fact successful
2014-04-18 01:17:35 +03:00
Tony Kovanen
f7e7658bac
Fixed bad indent
2014-04-18 01:02:50 +03:00