node-websocket-client icon indicating copy to clipboard operation
node-websocket-client copied to clipboard

Optional graceful close specified by WebSocket constructor

Open pgriess opened this issue 14 years ago • 1 comments

It seems that nobody implements graceful close on the server.

We should default to non-graceful close (i.e. sever the TCP connection), but allow clients to specify that they wish for graceful close using an option in the WebSocket constructor.

pgriess avatar May 21 '11 00:05 pgriess

+1

Let's sever the TCP connection with .close, and let's send the close packet with .close(true).

rauchg avatar Jun 12 '11 15:06 rauchg