We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
websocket.terminate()
1 parent 489a295 commit cbff929Copy full SHA for cbff929
doc/ws.md
@@ -476,7 +476,7 @@ Send `data` through the connection.
476
477
### websocket.terminate()
478
479
-Forcibly close the connection.
+Forcibly close the connection. Internally this calls [socket.destroy()][].
480
481
### websocket.url
482
@@ -502,4 +502,5 @@ given `WebSocket`.
502
https://nodejs.org/api/https.html#https_https_request_options_callback
503
[permessage-deflate]:
504
https://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-19
505
+[socket.destroy()]: https://nodejs.org/api/net.html#net_socket_destroy_error
506
[zlib-options]: https://nodejs.org/api/zlib.html#zlib_class_options
0 commit comments