swh:1:snp:c53ab93da1867a0ee99951a3636bca865f9194df

sort by:
Revision Author Date Message Commit Date
142f091 [dist] 8.1.0 11 August 2021, 19:54:06 UTC
d21c810 [feature] Add ability to skip UTF-8 validation (#1928) Add the `skipUTF8Validation` option to skip UTF-8 validation for text and close messages. Refs: https://github.com/websockets/ws/issues/1878 Closes #1924 11 August 2021, 19:53:51 UTC
9bd3bd1 [minor] Fix typo (#1929) 11 August 2021, 13:35:27 UTC
1e938f1 [major] Use an options object instead of positional arguments Make the `Receiver` constructor take a single options object argument instead of multiple positional arguments. 11 August 2021, 06:23:37 UTC
7f0b5c4 [example] Update uuid to version 8.3.2 09 August 2021, 06:56:18 UTC
fd47c96 [test] Move code block closer to where it is used 07 August 2021, 06:13:03 UTC
c95e695 [fix] Fix misleading error message Use the correct error message if the server sends an empty subprotocol name. 06 August 2021, 19:43:59 UTC
6a72da3 [fix] Do not rely on undocumented behavior Use the chunk returned by `socket.read()` to handle the buffered data instead of relying on a `'data'` event emitted after the `'close'` event. Refs: https://github.com/nodejs/node/pull/39639 06 August 2021, 16:49:48 UTC
04e74a1 [license] Fix license text 03 August 2021, 06:43:04 UTC
fc40248 [dist] 8.0.0 29 July 2021, 05:11:28 UTC
21e6500 [major] Overhaul event classes - Remove non-standard `OpenEvent` class. - Make properties read-only. - Update constructor signatures to match the ones defined by the HTML standard. 29 July 2021, 05:11:28 UTC
bd7febb [minor] Fix nits 29 July 2021, 05:11:28 UTC
6756cf5 [fix] Return `null` if the event handler is not set Make the `onclose`, `onerror`, `onmessage`, and `onopen` getters return `null` instead of `undefined` if the event handler is not set. 29 July 2021, 05:11:28 UTC
8c61563 [fix] Make listeners added via event handler properties independent Prevent the `onclose`, `onerror`, `onmessage`, and `onopen` getters and setters from returning or removing event listeners added with `WebSocket.prototype.addEventListener()`. Also prevent `WebSocket.prototype.removeEventListener()` from removing event listeners added with the `onclose`, `onerror`, `onmessage`, and `onopen` setters. Refs: https://github.com/websockets/ws/issues/1818 29 July 2021, 05:11:28 UTC
ea95d9c [major] Ignore listeners not added with `WebSocket#addEventListener()` Make `WebSocket.prototype.removeEventListener()` only remove listeners added with `WebSocket.prototype.addEventListener()` and only one at time. 29 July 2021, 05:10:51 UTC
9558ed1 [major] Make `WebSocket#addEventListener()` ignore non standard events Make `WebSocket.prototype.addEventListener()` a noop if the `type` argument is not one of `'close'`, `'error'`, `'message'`, or `'open'`. 29 July 2021, 05:10:31 UTC
77a675c [minor] Remove unneeded setters Refs: https://github.com/websockets/ws/commit/ecb9d9ea 15 July 2021, 09:25:55 UTC
64b3c71 [pkg] Update mocha to version 8.4.0 15 July 2021, 09:17:02 UTC
abde9cf [major] Call the callback with an error if the server is closed Match the behavior of Node.js core `net.Server` and call the callback of `WebSocketServer.prototype.close()` with an error if the server is already closed. 14 July 2021, 19:26:04 UTC
df7de57 [major] Do not close existing connections When `WebSocketServer.prototype.close()` is called, stop accepting new connections but do not close the existing ones. If the HTTP/S server was created internally, then close it and emit the `'close'` event when it closes. Otherwise, if client tracking is enabled, then emit the `'close'` event when the number of connections goes down to zero. Otherwise, emit it in the next tick. Refs: https://github.com/websockets/ws/pull/1902 14 July 2021, 19:26:04 UTC
78adf5f [major] Add an ES module wrapper Fixes #1886 14 July 2021, 19:26:04 UTC
e173423 [major] Do not decode `Buffer`s to strings Avoid decoding text messages and close reasons to strings. Pass them as `Buffer`s to the listeners of their respective events. Also, make listeners of the `'message'` event take a boolean argument to speficy whether or not the message is binary. Refs: https://github.com/websockets/ws/issues/1878 Refs: https://github.com/websockets/ws/issues/1804 14 July 2021, 19:26:04 UTC
ebea038 [major] Throw an error if the connection URL is invalid Make the `WebSocket` constructor throw a `SyntaxError` if the URL contains a fragment identifier or if the URL's protocol is not one of `'ws:'`, `'wss:'`, or `'ws+unix:'`. 14 July 2021, 19:26:04 UTC
552b506 [major] Drop support for Node.js < 10 14 July 2021, 19:26:04 UTC
e814110 [major] Make the Sec-WebSocket-Extensions header parser stricter Make the parser throw an error if the header field value is empty or if it begins or ends with a white space. 14 July 2021, 19:26:04 UTC
1877dde [major] Validate the Sec-WebSocket-Protocol header Abort the handshake if the `Sec-WebSocket-Protocol` header is invalid. 14 July 2021, 19:26:04 UTC
0aecf0c [major] Validate subprotocol names Make the `WebSocket` constructor throw a `SyntaxError` if any of the subprotocol names are invalid or duplicated. 14 July 2021, 19:26:04 UTC
4c1849a [dist] 7.5.3 10 July 2021, 05:26:57 UTC
772236a [fix] Abort the handshake if the server is closing or closed Prevent WebSocket connections from being established after `WebSocketServer.prototype.close()` is called. 09 July 2021, 10:47:58 UTC
5a58730 [fix] Emit the `'close'` event after the server is closed Ensure that `WebSocketServer.prototype.close()` does not emit a `'close'` event prematurely if called while the internal HTTP/S server is closing. 09 July 2021, 09:06:26 UTC
ea63b29 [minor] Fix typo 08 July 2021, 17:21:44 UTC
66e58d2 [fix] Make the `{noS,s}erver`, and `port` options mutually exclusive Remove ambiguity and prevent `WebSocketServer.prototype.address()` from throwing an error if the `noServer` option is used along with the `port` and/or `server` options. 08 July 2021, 11:55:29 UTC
ecb9d9e [minor] Improve JSDoc-inferred types (#1912) Refs: https://github.com/websockets/ws/pull/1910 07 July 2021, 11:07:17 UTC
0ad1f9d [dist] 7.5.2 04 July 2021, 05:22:35 UTC
aca94c8 [fix] Abort the handshake if an unexpected extension is received Abort the handshake if the client receives a `Sec-WebSocket-Extensions` header but no extension was requested. Also abort the handshake if the server indicates an extension not requested by the client. 03 July 2021, 08:15:19 UTC
38c6c73 [dist] 7.5.1 29 June 2021, 04:53:49 UTC
2916006 [test] Add more tests for `WebSocket.prototype.close()` 28 June 2021, 19:08:28 UTC
b434b9f [fix] Fix close edge cases Ensure that `socket.end()` is called if an error occurs simultaneously on both peers. Refs: https://github.com/websockets/ws/pull/1902 28 June 2021, 19:08:28 UTC
c3fdc99 [minor] Fix misleading comment 28 June 2021, 09:16:11 UTC
145480a [test] Fix repeated typo 20 June 2021, 17:51:56 UTC
e3f0c17 [dist] 7.5.0 16 June 2021, 13:13:32 UTC
1d3f4cb [doc] Fix anchor tags for error codes 15 June 2021, 14:20:37 UTC
6eea0d4 [doc] Fix typo 15 June 2021, 13:50:18 UTC
bb5d44b [doc] Sort error codes alphabetically 15 June 2021, 13:48:30 UTC
c6e3080 [minor] Attach error codes to all receiver errors (#1901) Fixes #1892 15 June 2021, 13:22:01 UTC
074e6a8 [fix] Don't call `ws.terminate()` unconditionally in `duplex._destroy()` Call `ws.terminate()` only if `duplex.destroy()` is called directly by the user and not indirectly by the listener of the `'error'` event of the `WebSocket` object. Calling `ws.terminate()` right after the `'error'` event is emitted on the `WebSocket` object, might prevent the close frame from being sent to the other peer. 09 June 2021, 19:31:36 UTC
8806aa9 [fix] Close the connection cleanly when an error occurs Instead of destroying the socket, try to close the connection cleanly if an error (such as a data framing error) occurs after the opening handshake has completed. Also, to comply with the specification, use the 1006 status code if no close frame is received, even if the connection is closed due to an error. Fixes #1898 09 June 2021, 19:31:36 UTC
05b8ccd [doc] Fix broken link (#1897) 05 June 2021, 19:02:44 UTC
03a7078 [doc] Remove unsafe regex from code snippet 31 May 2021, 17:08:20 UTC
7ee3115 [doc] Add logo to coverage badge 29 May 2021, 19:21:01 UTC
edff6bb [test] Fix nit 28 May 2021, 09:43:17 UTC
262e45a [test] Rename certificates and private keys files Rename `ca1-cert.pem` to `ca-certificate.pem`, `ca1-key.pem` to `ca-key.pem`, `agent1-cert.pem` to `client-certificate.pem`, and `agent1-key.pem` to `client-key.pem`. 27 May 2021, 07:02:55 UTC
d18c677 [security] Update link to point to published security advisories 26 May 2021, 19:27:29 UTC
2f2b3e8 [test] Update certificates and private keys Fixes #1890 26 May 2021, 19:21:11 UTC
c05d51f [security] Add ReDoS vulnerability to SECURITY.md 25 May 2021, 16:33:07 UTC
f5297f7 [dist] 7.4.6 25 May 2021, 16:11:07 UTC
00c425e [security] Fix ReDoS vulnerability A specially crafted value of the `Sec-Websocket-Protocol` header could be used to significantly slow down a ws server. PoC and fix were sent privately by Robert McLaughlin from University of California, Santa Barbara. 25 May 2021, 16:09:51 UTC
990306d [lint] Fix prettier error 25 May 2021, 14:48:37 UTC
32e3a84 [security] Remove reference to Node Security Project The Node Security Platform service no longer exists. New security advisories will be published to GitHub Security Advisories. 25 May 2021, 14:02:21 UTC
8c914d1 [minor] Fix nits 04 May 2021, 10:18:24 UTC
fc7e27d [ci] Test on node 16 23 April 2021, 18:24:19 UTC
587c201 [ci] Do not test on node 15 23 April 2021, 18:23:23 UTC
f672710 [dist] 7.4.5 18 April 2021, 08:00:59 UTC
67e25ff [fix] Fix case where `abortHandshake()` does not close the connection On Node.js >= 14.3.0 `request.abort()` does not destroy the socket if called after the request completed. Fixes #1869 18 April 2021, 07:52:27 UTC
23ba6b2 [fix] Make UTF-8 validation work even if utf-8-validate is not installed Fixes #1868 17 April 2021, 14:23:19 UTC
114de9e [ci] Use a unique ID instead of commit SHA 07 March 2021, 16:50:40 UTC
d75a62e [ci] Include commit SHA in `flag-name` 07 March 2021, 05:54:46 UTC
a74dd2e [dist] 7.4.4 06 March 2021, 20:29:14 UTC
9277437 [fix] Recreate the inflate stream if it ends Refs: https://github.com/nodejs/node/issues/37612 06 March 2021, 20:19:06 UTC
cbff929 [doc] Improve `websocket.terminate()` documentation Fixes #1858 03 March 2021, 08:42:29 UTC
489a295 [ci] Use GitHub Actions (#1853) 26 February 2021, 16:42:21 UTC
77370e0 [pkg] Update eslint-config-prettier to version 8.1.0 24 February 2021, 19:18:51 UTC
99338f7 [doc] Fix `data` argument type (#1843) 07 February 2021, 07:38:09 UTC
223194e [dist] 7.4.3 02 February 2021, 19:16:11 UTC
4e9607b [perf] Reset compressor/decompressor instead of re-initialize (#1840) 02 February 2021, 18:18:21 UTC
2789887 [minor] Use `request.socket` instead of `request.connection` `request.connection` is deprecated. 27 January 2021, 07:53:40 UTC
2079ca5 [test] Increase code coverage 26 January 2021, 15:49:10 UTC
d1a8af4 [dist] 7.4.2 29 December 2020, 20:10:42 UTC
48a2349 [pkg] Update eslint-config-prettier to version 7.1.0 29 December 2020, 20:10:42 UTC
a2c0d44 [minor] Silence deprecation warning Fixes #1829 28 December 2020, 20:42:32 UTC
c171962 [dist] 7.4.1 04 December 2020, 20:41:31 UTC
38d6ab3 [fix] Handle cases where the `'error'` event is emitted multiple times The `'error'` event can be emitted multiple times by the `http.ClientRequest` object in Node.js < 13. Handle the case properly. Fixes #1819 04 December 2020, 20:14:30 UTC
3d5066a [test] Check configurability and enumerability of WebSocket properties 08 November 2020, 08:25:37 UTC
eb36a63 [dist] 7.4.0 08 November 2020, 06:41:21 UTC
3f185bf [minor] Use the public `binaryType` property 07 November 2020, 08:41:03 UTC
2069e68 [fix] Fix the enumerability of some properties Make the `CONNECTING`, `OPEN`, `CLOSING`, `CLOSED`, `binaryType`, `bufferedAmount`, `extensions`, `onclose`, `onerror`, `onmessage`, `onopen`, `protocol`, `readyState`, and `url` properties enumerable. 07 November 2020, 08:29:12 UTC
eabed8f [fix] Make read-only properties read-only Fixes #1814 07 November 2020, 08:29:06 UTC
7d39f19 [minor] Pass the request object to `server.handleUpgrade()` callback Fixes #1813 06 November 2020, 19:02:30 UTC
572c81f [ci] Test on node 15 05 November 2020, 19:53:09 UTC
237960e [codestyle] Use 80 characters per line in JSDoc comments 22 October 2020, 10:37:37 UTC
02ecf45 [minor] Specify optional parameters in JSDoc (#1799) 22 October 2020, 10:22:40 UTC
69172fc [minor] Add missing parameters in JSDoc comments 22 October 2020, 08:47:26 UTC
d972c33 [example] Write 401 response before destroying the socket (#1798) 17 September 2020, 05:48:21 UTC
535c556 [ci] Do not test on node 13 01 September 2020, 19:02:17 UTC
40a9d2a [test] Fix typo 06 August 2020, 05:42:37 UTC
9a99197 [test] Clarify comment 05 August 2020, 17:19:39 UTC
42abb0e [test] Use `os.tmpdir()` instead of hardcoded /tmp 05 August 2020, 15:10:09 UTC
622e2f3 [meta] Remove 3rd-Eden from FUNDING.yml 3rd-Eden is not yet enrolled in GitHub Sponsors. 29 July 2020, 18:22:35 UTC
cc656df [meta] Add FUNDING.yml 29 July 2020, 17:10:05 UTC
da42ea1 [doc] Improve documentation for `websocket.bufferedAmount` Closes #492 20 July 2020, 18:15:43 UTC
back to top