It seems since a error is thrown internally that we cannot catch, the whole server crashes when the client sends a null message to the server.
error: Uncaught (in promise) Error: ConnectionReset: Socket has already been closed throw new WebSocketError(e); ^ at websocket.ts:99:17 at async WebSocket.open (websocket.ts:98:9)
To reproduce:
Open up a connection to your deno websocket server in something like Firefox.
It seems since a error is thrown internally that we cannot catch, the whole server crashes when the client sends a null message to the server.
error: Uncaught (in promise) Error: ConnectionReset: Socket has already been closed throw new WebSocketError(e); ^ at websocket.ts:99:17 at async WebSocket.open (websocket.ts:98:9)
To reproduce:
connection.send(null);