You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The close status code is now set to 1005 if the received close frame contains
no status code (a31b1f6).
Error messages and types have been updated (695c5ea).
The onerror event handler now receives an ErrorEvent instead of JavaScript
error (63e275e).
The third argument of WebSocket.prototype.ping() and WebSocket.prototype.pong() is no longer a boolean but an optional callback
(30c9f71).
The non-standard protocolVersion and bytesReceived attributes have been
removed (7f8ebc6...ee9b5f3).
The extensions attribute is no longer an object but a string representing
the extensions selected by the server (fdec524).
The 'headers' event on the client has been renamed to 'upgrade'. Listeners
of this event now receive only the response argument (1c783c2).
The WebSocket.prototype.pause() and WebSocket.prototype.resume() methods
have been removed to prevent the user from interfering with the state of the
underlying net.Socket stream (a206e98).
The text was updated successfully, but these errors were encountered:
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 60 days. Thanks!
There are new versions of ws available from npm.
4.0.0
Breaking changes
no status code (a31b1f6).
onerror
event handler now receives anErrorEvent
instead of JavaScripterror (63e275e).
WebSocket.prototype.ping()
andWebSocket.prototype.pong()
is no longer a boolean but an optional callback(30c9f71).
protocolVersion
andbytesReceived
attributes have beenremoved (7f8ebc6...ee9b5f3).
extensions
attribute is no longer an object but a string representingthe extensions selected by the server (fdec524).
'headers'
event on the client has been renamed to'upgrade'
. Listenersof this event now receive only the
response
argument (1c783c2).WebSocket.prototype.pause()
andWebSocket.prototype.resume()
methodshave been removed to prevent the user from interfering with the state of the
underlying
net.Socket
stream (a206e98).The text was updated successfully, but these errors were encountered: