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 -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsubscr...@googlegroups.com. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/7d33ed11-a76d-4556-93ba-d4d330c35290%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.