ryo-ma / deno-websocket

🦕 A simple WebSocket library like ws of node.js library for deno
https://deno.land/x/websocket
MIT License
152 stars 17 forks source link

Sending null to a server will crash it #12

Closed asjur closed 3 years ago

asjur commented 3 years ago

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: