2634e930f9
Update the self-signed SSL certificates.
James Coglan
2018-07-26 11:08:56 +01:00
5f3e939518
Set close timer before closing the driver.
Luigi Pinca
2017-10-04 17:24:18 +02:00
b85f22e43b
Drop testing for io.js releases, which barely anybody is still using.
James Coglan
2017-08-01 23:48:34 +01:00
1f439f6e9c
Test on Node 8.
James Coglan
2017-08-01 00:52:04 +01:00
4b667a1ba5
Formatting tweaks to package.json.
James Coglan
2017-08-01 00:49:18 +01:00
49eab191cc
Bump version to 0.11.1.
0.11.1
James Coglan
2017-01-22 19:46:33 +00:00
f3749cd347
Call stream.destroy() to make sure that sockets that allow half-open mode are closed.
James Coglan
2017-01-11 22:00:03 +00:00
d97556a1dc
Cancel the timer that forces the socket to close in finalizeClose().
James Coglan
2017-01-11 21:53:18 +00:00
ba4da1077a
Upgrade npm on Node v0.8.
James Coglan
2016-12-29 11:44:12 +00:00
560a78b18f
When close() is called, set a timeout to call beginClose() so the TCP socket is closed if the other peer never replies.
James Coglan
2016-12-29 11:26:41 +00:00
d690bada0b
Test on Node v7.
James Coglan
2016-12-29 11:26:15 +00:00
2aef23a530
Update the self-signed certificates for testing secure servers.
James Coglan
2016-12-29 11:26:00 +00:00
3148348a3a
Correct a few links to specs.
James Coglan
2016-06-10 20:45:31 +01:00
641212d2b1
Merge pull request #55 from tomjakubowski/patch-1
James Coglan
2016-06-10 20:39:17 +01:00
c00bee21d3
README: fix EventSource link
Tom Jakubowski
2016-05-31 13:02:26 -07:00
c4494ff88a
Bump version to 0.6.5.
0.6.5
James Coglan
2016-05-20 08:41:04 +01:00
cfb2a86838
Test on Node 6.0.
James Coglan
2016-04-30 13:08:02 +01:00
02612c01cd
Test on Node 6.0.
James Coglan
2016-04-30 12:59:38 +01:00
6a92cacf62
Apply masking to messages once the payload has been placed in the frame buffer rather than mutating the original message.
James Coglan
2016-04-27 22:28:58 +01:00
dc392490a8
Bump version to 0.11.0 and drop support for Node < 0.8.
0.11.0
James Coglan
2016-02-24 08:34:09 +00:00
0feee7974c
Bump the copyright year.
James Coglan
2016-02-06 19:15:41 +00:00
91d8e1ad41
Use https: URLs for github.com in package.json.
James Coglan
2016-02-06 18:11:32 +00:00
c27fee0680
Document the net option to the Client class.
James Coglan
2016-02-06 18:11:17 +00:00
061494bc2c
Introduce a 'net' option that can be used to pass through options to net.connect().
James Coglan
2016-02-06 15:51:18 +00:00
958d3a458f
Use the same guarded assignment pattern for all socket options we interfere with.
James Coglan
2016-02-06 13:43:56 +00:00
2d945cff5d
Merge pull request #50 from lazyfrosch/support-sni
James Coglan
2016-02-06 13:42:43 +00:00
2be829546b
Bump version to 0.6.4.
0.6.4
James Coglan
2016-01-07 08:58:29 +00:00
7f3bb13b5c
In draft-75/76, convert all non-string values to strings before sending.
James Coglan
2016-01-06 23:20:47 +00:00
ffa0aa3a8f
Convert numbers to strings when sending frames.
James Coglan
2016-01-06 23:12:44 +00:00
d3340cdd63
Support SNI communication with a webserver
Markus Frosch
2015-12-21 11:23:48 +01:00
0d15d7a3ec
Add checks for the headers and status to the tests.
James Coglan
2015-11-25 22:24:52 +00:00
cdc7f0891b
Remove deflate config from example server; I must have accidentally committed this.
James Coglan
2015-11-25 21:58:09 +00:00
7c64c35c74
Create CODE_OF_CONDUCT.md.
James Coglan
2015-11-08 12:16:08 +00:00
f8c5b86e10
Create CODE_OF_CONDUCT.md.
James Coglan
2015-11-08 12:15:58 +00:00
10481b81db
Bump version to 0.6.3.
0.6.3
James Coglan
2015-11-06 22:16:36 +00:00
53db3d6c25
Test on Node 5.
James Coglan
2015-11-05 21:22:50 +00:00
5b3c8131c4
Test on Node 5.
James Coglan
2015-11-05 21:22:37 +00:00
b0b0d69ce4
Throw a more helpful error if a client driver is created with an invalid URL.
James Coglan
2015-10-17 21:44:36 +01:00
dcb3375dda
Run tests on major versions of iojs and node 4.
James Coglan
2015-10-17 13:01:07 +01:00
3461e0187b
Run tests on major versions of iojs and node 4.
James Coglan
2015-10-17 12:57:58 +01:00
5b59d0fcd8
Use the modulo operator rather than Math.floor() to check whether the draft-76 keys are legit.
James Coglan
2015-10-02 21:35:22 +01:00
68990a260b
Close the connection if a draft-76 client sends a Sec-WebSocket-Key header where the numeric value is a non-integer multiple of the number of spaces.
James Coglan
2015-10-01 23:47:15 +01:00
fa8b82d424
Bump version to 0.6.2.
0.6.2
James Coglan
2015-07-18 17:40:03 +01:00
89e2a7da82
Emit a protocol error when a closing frame has a 1-byte payload.
James Coglan
2015-07-17 22:05:26 +01:00
70ef5440c4
Emit close code 1000 if the closing frame does not contain one.
James Coglan
2015-07-15 18:04:02 +01:00
c84cce9a1f
Bump version to 0.6.1.
James Coglan
2015-07-13 20:13:20 +01:00
c8e5f1eb78
A few stylistic tweaks.
James Coglan
2015-07-11 14:24:27 +01:00
eb5e39e7e3
Standardise the words used to refer to chunks of parser input.
James Coglan
2015-07-10 22:37:54 +01:00
a95f68080e
Use the buffer.{read,write}UInt{16,32}BE functions to parse and write numbers rather than implementing such things ourselves.
James Coglan
2015-07-10 19:57:12 +01:00
854c0a9658
Bump version to 0.10.0.
0.10.0
James Coglan
2015-07-08 21:10:01 +01:00
7a1cb15b8c
Bump version to 0.6.0.
James Coglan
2015-07-08 20:17:01 +01:00
14937dd365
Emit an error event *after* setting the ready state to 3.
James Coglan
2015-07-08 20:14:14 +01:00
780dd331fe
The 'connect' event should emit a ConnectEvent object.
James Coglan
2015-07-07 21:33:15 +01:00
4a3d51cc5b
Incorporate StreamReader into Draft75 so that it retains input and recovers safely from exceptions in event listeners.
James Coglan
2015-07-07 21:30:06 +01:00
ed17186354
In the Hybi driver, perform parser state changes before validating and emitting events. This protects the parser against errors thrown by event listeners.
James Coglan
2015-07-07 20:30:45 +01:00
d753d09372
Remove the optional signifier from the ping() docs.
James Coglan
2015-07-04 21:23:02 +01:00
1df1293456
Change stage in the Base.shutdown() method to that all parsers stop processing input.
James Coglan
2015-07-04 21:07:34 +01:00
d901d3e48d
If an event listener emits an error, close the connection with code 1011.
James Coglan
2015-07-04 20:54:22 +01:00
a49cd60cb7
Document that on() *adds* a callback, rather than *setting* one, i.e. it does not remove any prior callbacks.
James Coglan
2015-07-04 19:31:36 +01:00
4dd872f0ef
Add the pong() command to the documentation.
James Coglan
2015-07-04 18:50:55 +01:00
90b8c9d23a
Add tests to others socket states
Victor Gama
2015-02-26 18:20:14 -03:00
c3ac50931e
Implement unit tests for pong method
Victor Gama
2015-02-20 23:52:09 -02:00
5f6873ebc0
Ensure message is always defined
Victor Gama
2015-02-20 21:37:18 -02:00
309b5651a7
Implement 'pong' command to hybi.js
Victor Gama
2015-02-20 21:33:07 -02:00
febde17f0e
Store the closing parameters (code and reason) before calling 'finalize', so they are emitted if there is no socket connected.
James Coglan
2015-07-04 18:33:13 +01:00
c52271c308
Update the TLS certificates since the old ones had expired.
James Coglan
2015-06-22 11:17:22 +01:00
8460dd9f03
Add the code and reason parameters to the close() API call.
James Coglan
2015-06-22 10:47:50 +01:00
1cc0f33e1c
Update the changelog for 0.5.4.
0.5.4
James Coglan
2015-03-29 23:13:10 +01:00
b273147f0c
Replace 'iff' with 'if and only if'.
James Coglan
2015-03-28 19:44:10 +00:00
66fc108591
Replace 'iff' with 'if and only if'.
James Coglan
2015-03-28 19:43:43 +00:00
d1796bef12
Use require('..') to import this module in examples.
James Coglan
2015-03-28 09:47:59 +00:00