If autoReconnect is set and you close the WebSocket it will still continue to try and reconnect.
I tried setting autoReconnect to 0 before the call to close() however based on the code it seems like the reconnectTimer is never reset when turning off autoReconnect.
Can this please be fixed as soon as possible?
I opened a new issue: https://github.com/shannah/cn1-websockets/issues/14