Skip to content

Add errorCaught handler to close the WebSocket

Pre-release
Pre-release
Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 26 Feb 21:09
670e757

Now when an error is thrown by NIO we receive it and close the WebSocket connection. The error code is available on WebSocket.closeCode by the time the WebSocket.onClose future resolves (#61, fixes #58).