react-use-websocket
react-use-websocket copied to clipboard
Informational question: what might cause assertIsWebsocket to start failing?
Hi there, I am using this library on a fairly large project and recently we had an incident where the assertIsWebsocket assertion started failing.
We were unable to track down the cause of the failure, and bypassing the assertion with skipAssertion: true fixed the issue. We suspect that some sort of network change may have been the culprit, but was hoping you might be able to shed some light on what the purpose of the assertion is and why a socket that is NOT an instanceof WebSocket would still be able to function correctly.
Thanks!