BetaRavener / upy-websocket-server

Micropython (ESP8266) websocket server implementation.
MIT License
83 stars 24 forks source link

Change socket state check to state == 4 #15

Closed vlad2305m closed 1 year ago

vlad2305m commented 1 year ago

Idk what the hell is going on, but this simple change seems to stop the socket from closing after the first message (Saw it in https://github.com/AdrianCX/crawlspacebot/commit/7ba06ad1dfcd8eaea91d77a2eb30e69efb4ee7fe)

BetaRavener commented 1 year ago

Looks to be same issue as #13, hence this seems confirmed by multiple people. Comment in that issue also gives potential explanation. I'll update the code.

BetaRavener commented 1 year ago

Hope the issue will be fixed now, thanks for reporting. Feel free to reopen or create a new issue if the behavior is still not as expected.