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
Calling close(code,reason) with arguments throws an error:
Uncaught DOMException: A parameter or an operation is not supported by the underlying object
close reconnecting-websocket-mjs.js:374
Calling close() with no arguments closes the connection just fine.
This is happening when trying to be used in a React component, where the ReconnectingWebSocket object .close() is called on is a reference using React.useRef()
The text was updated successfully, but these errors were encountered:
Calling
close(code,reason)
with arguments throws an error:Calling
close()
with no arguments closes the connection just fine.This is happening when trying to be used in a React component, where the ReconnectingWebSocket object
.close()
is called on is a reference using React.useRef()The text was updated successfully, but these errors were encountered: