Sourced from ws's releases.
8.2.3
Bug fixes
- When context takeover is enabled, messages are now compressed even if their size is below the value of the
perMessageDeflate.thresholdoption (41ae5631).8.2.2
Bug fixes
- Some closing operations are now run only if needed (ec9377ca).
8.2.1
Bug fixes
- Fixed an issue where the socket was not resumed, preventing the connection from being closed cleanly (869c9892).
8.2.0
Features
- Added
WebSocket.WebSocketas an alias forWebSocketandWebSocket.WebSocketServeras an alias forWebSocket.Serverto fix name consistency and improve interoperability with the ES module wrapper (https://github.com/facebook/flipper/issues/1935).8.1.0
Features
- Added ability to skip UTF-8 validation (https://github.com/facebook/flipper/issues/1928).
Bug fixes
- Fixed an issue with a breaking change in Node.js master (6a72da3e).
- Fixed a misleading error message (c95e695d).
8.0.0
Breaking changes
- The
WebSocketconstructor now throws aSyntaxErrorif any of the subprotocol names are invalid or duplicated (0aecf0c9).- The server now aborts the opening handshake if an invalid
Sec-WebSocket-Protocolheader field value is received (1877ddeb).- The
protocolsargument ofhandleProtocolshook is no longer anArraybut aSet(1877ddeb).- The opening handshake is now aborted if the
Sec-WebSocket-Extensionsheader field value is empty or it begins or ends with a white space (e814110e).- Dropped support for Node.js < 10.0.0 (552b5067).
- The
WebSocketconstructor now throws aSyntaxErrorif the connection URL contains a fragment identifier or if the URL's protocol is not one of'ws:','wss:', or'ws+unix:'(ebea038f).- Text messages and close reasons are no longer decoded to strings. They are
... (truncated)
cfd99b6 [dist] 8.2.3fef7942 [ci] Fix typo41ae563 [fix] Ignore the threshold option if context takeover is enabled474aa36 [doc] Improve WebSocket#{p{i,o}ng,send}() documentation055949f [doc] Remove no longer needed noop function from code snippet5b85322 [ci] Update coverallsapp/github-action action to version 1.1.3f871195 [doc] Update issue template72296e5 [dist] 8.2.23039b6b [doc] Change label text to CI04c032c [ci] Use Github Actions for Windows x86 testing