danni / uwebsockets

Micropython websockets implementation
MIT License
192 stars 44 forks source link

Raise exception when socket dies #9

Closed fakufaku closed 5 years ago

fakufaku commented 5 years ago

Hi @danni , I have modified the code so that a ConnectionClosed exception is raised by recv when the socket has died. This makes it more straightforward to handle broken connections in a client application.

Please let me know if this is something of interest and whether that would be the right way to handle this.