elm-websocket-client icon indicating copy to clipboard operation
elm-websocket-client copied to clipboard

clicking connect and close fast, breaks the all further connections permanently

Open damoon opened this issue 5 years ago • 1 comments

log output

SocketNotOpenError "socket"
Sending "Hello World!"
LowLevelError { key = "Nothing", code = "keyused", description = "Key already has a socket open: socket", code = "Nothing" }
Connecting to wss://echo.websocket.org
UnexpectedConnectedError { key = "socket", description = "Socket connected for URL: wss://echo.websocket.org" }
Closing
Connecting to wss://echo.websocket.org
Closed, code: NoStatusRecvd, clean, expected
Closing
Connected: Socket connected for URL: wss://echo.websocket.org
Connecting to wss://echo.websocket.org
Closed, code: NoStatusRecvd, clean, expected
Closing
Connected: Socket connected for URL: wss://echo.websocket.org
Connecting to wss://echo.websocket.org

it looks to me like a race condition in the javascript code.

damoon avatar Jun 13 '20 12:06 damoon

ps: great work, thanks for the package

damoon avatar Jun 13 '20 12:06 damoon