masterv0.4.31
Reading changes from the repo…
Blob
objects directly using the .send()
method, making it easier to work with binary data. This feature enhances compatibility with web applications that utilize Blob
for data handling. createConnection
option is added to control client socket setup, providing more flexibility in how connections are established. autoPong
option to disable automatic pong responses to pings, giving you more control over your WebSocket connections. This feature enhances flexibility in managing WebSocket behavior. skipUTF8Validation
option, allowing for more lenient message handling when needed. generateMask
option, enabling custom masking key generation for WebSocket messages, enhancing security and flexibility in message handling. WebSocket#pause()
and WebSocket#resume()
methods, allowing you to control the flow of data in your WebSocket connections more effectively. sec-websocket-version
header in responses when an invalid version is requested, ensuring better compliance with WebSocket standards. 'wsClientError'
event, allowing you to inspect invalid handshake requests and respond with custom HTTP responses, improving error handling capabilities. allowSynchronousEvents
is now set to true
, improving the handling of synchronous events in your applications. Upgrade
header by ensuring that it is not overridden, enhancing the reliability of WebSocket connections. ws+unix:
URL form by removing unnecessary characters, making it easier to understand and use. WebSocketServer
documentation to clarify the callback
argument's behavior, ensuring better understanding for developers. websocket.bufferedAmount
, providing clearer guidance on its usage and behavior. maxPayload
errors is improved to prevent callback races and ensure correct error codes are emitted. handleUpgrade
method to ensure it works correctly even when the socket is just a stream, preventing unexpected failures. WebSocket#close()
method to ensure it behaves correctly when called from an error listener, preventing infinite loops. Upgrade
header to close the connection if it is invalid, ensuring that only valid WebSocket connections are established. WebSocket
constructor to throw a SyntaxError
for invalid connection URLs, improving error handling and user feedback. WebSocketServer.prototype.close()
method does not emit a 'close'
event prematurely, providing a more accurate event flow.