SocketCluster / socketcluster-client

JavaScript client for SocketCluster
MIT License
293 stars 91 forks source link

Incorrect disconnect code #146

Open alexanderbrus opened 1 year ago

alexanderbrus commented 1 year ago

Library ws which used under the hood for node.js clients, does not allow disconnect codes 1004, 1005 and 1006.

But anyway socketcluster-client uses 1005 and 1006 which leads to Uncaught exception: "TypeError: First argument must be a valid error code number" (see, WS Code validation)

jondubois commented 1 year ago

@alexanderbrus Which version of socketcluster-client is affected? How to reproduce this issue?