Why does my WebSocket connection always closes with 1006 error code, even when I use .close(1000) or .close(3000).
Interestingly, when using the WebSockets connection with Express.js and Express-ws, this does not happen, only when using our real API. Could it be something the server does? Isn't 1006 local only though?
Any help would be appreciated.
Thanks