Commit Graph

  • d21a41330c Remove jstest copy of nopt, which will not run on Node <= v12 main James Coglan 2023-09-07 19:13:46 +01:00
  • 4983d151c4 Update TLS certificates James Coglan 2023-09-07 18:51:50 +01:00
  • 3c711fc376 Test on recent Node versions James Coglan 2023-09-07 18:49:05 +01:00
  • e9722f4a2f Don't pass events to process.exit(), which is an error in Node v20 James Coglan 2023-09-07 18:48:18 +01:00
  • f1f48e6c23 Use 0.0.0.0 in Autobahn example because localhost does not seem to work on Node v18 James Coglan 2023-09-07 18:47:42 +01:00
  • eae09c0780 Remove .npmignore James Coglan 2021-05-24 23:28:02 +01:00
  • 0528a5d4bd Bump version to 0.11.4 0.11.4 James Coglan 2021-05-24 23:08:15 +01:00
  • fff2a43d63 Update the test TLS certificate James Coglan 2021-05-18 22:15:00 +01:00
  • 46806f86f4 Switch from Travis CI to GitHub Actions James Coglan 2021-05-18 22:12:42 +01:00
  • 32af9bb353 Travis update: cache npm modules, remove sudo, run on Node 15 James Coglan 2021-03-12 21:36:08 +00:00
  • 6b66c9fd9d Merge branch 'fix-double-close' James Coglan 2021-03-12 17:01:26 +00:00
  • 98ddef1e9a Test on Node.js version 15 James Coglan 2021-03-12 17:01:15 +00:00
  • e316a82f86 Fix hang on double close John Lees-Miller 2021-01-23 21:05:30 +00:00
  • 0be69bd810 Update the TLS certificate James Coglan 2020-05-14 17:47:36 +01:00
  • b1c5f9049f Add Node versions 13 and 14 on Travis James Coglan 2020-05-14 16:30:07 +01:00
  • 3eb0a395f3 Mention license change in the changelog James Coglan 2019-06-13 11:40:24 +01:00
  • f878a91eb5 Formatting change: {...} should have spaces inside the braces James Coglan 2019-06-11 16:02:47 +01:00
  • a2d1fa84e4 Bump version to 0.11.3 0.11.3 James Coglan 2019-06-10 12:32:02 +01:00
  • 4f31ad9851 Set the 'files' attribute in package.json James Coglan 2019-06-10 12:31:15 +01:00
  • e27ce57c48 Bump version to 0.11.2 James Coglan 2019-06-10 12:27:56 +01:00
  • eb6fac855c Let npm reformat package.json James Coglan 2019-06-10 12:25:35 +01:00
  • 4009b68a43 Switch license to Apache 2.0 James Coglan 2019-06-10 06:33:20 +01:00
  • 063a1362df Remove the Autobahn link from the readme James Coglan 2019-06-07 00:30:30 +01:00
  • b4dc4e1411 Merge pull request #65 from lpinca/gh-64 James Coglan 2019-05-29 16:01:28 +01:00
  • ccaa8ea76e Change markdown formatting of docs. James Coglan 2019-05-29 15:36:32 +01:00
  • 17fae3cc5c Merge pull request #72 from arnaud16571542/patch-1 James Coglan 2019-05-29 14:25:01 +01:00
  • 8e9f7923ad Update Travis target versions. James Coglan 2019-05-28 23:16:09 +01:00
  • acc3ea9795 Put all source files in strict mode. James Coglan 2019-05-28 23:13:08 +01:00
  • 01cdfb18db Create LICENSE arnaud16571542 2019-03-03 09:41:09 +01:00
  • 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