From cbff929b810529f64a88e4b7b8f25d19023dc912 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Wed, 3 Mar 2021 09:30:15 +0100 Subject: [PATCH] [doc] Improve `websocket.terminate()` documentation Fixes #1858 --- doc/ws.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/ws.md b/doc/ws.md index 2da2f6440..de62e6756 100644 --- a/doc/ws.md +++ b/doc/ws.md @@ -476,7 +476,7 @@ Send `data` through the connection. ### websocket.terminate() -Forcibly close the connection. +Forcibly close the connection. Internally this calls [socket.destroy()][]. ### websocket.url @@ -502,4 +502,5 @@ given `WebSocket`. https://nodejs.org/api/https.html#https_https_request_options_callback [permessage-deflate]: https://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-19 +[socket.destroy()]: https://nodejs.org/api/net.html#net_socket_destroy_error [zlib-options]: https://nodejs.org/api/zlib.html#zlib_class_options