Sourced from ws's releases.
7.5.3
Bug fixes
- The
WebSocketServer
constructor now throws an error if more than one of thenoServer
,server
, andport
options are specefied (66e58d27).- Fixed a bug where a
'close'
event was emitted by aWebSocketServer
before the internal HTTP/S server was actually closed (5a587304).- Fixed a bug that allowed WebSocket connections to be established after
WebSocketServer.prototype.close()
was called (772236a1).7.5.2
Bug fixes
- The opening handshake is now aborted if the client receives a
Sec-WebSocket-Extensions
header but no extension was requested or if the server indicates an extension not requested by the client (aca94c86).7.5.1
Bug fixes
- Fixed an issue that prevented the connection from being closed properly if an error occurred simultaneously on both peers (b434b9f1).
4c1849a
[dist] 7.5.3772236a
[fix] Abort the handshake if the server is closing or closed5a58730
[fix] Emit the 'close'
event after the server is closedea63b29
[minor] Fix typo66e58d2
[fix] Make the {noS,s}erver
, and port
options mutually exclusiveecb9d9e
[minor] Improve JSDoc-inferred types (#1912)0ad1f9d
[dist] 7.5.2aca94c8
[fix] Abort the handshake if an unexpected extension is received38c6c73
[dist] 7.5.12916006
[test] Add more tests for WebSocket.prototype.close()