Skip to content

Commit cbff929

Browse files
committed
[doc] Improve websocket.terminate() documentation
Fixes #1858
1 parent 489a295 commit cbff929

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/ws.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ Send `data` through the connection.
476476

477477
### websocket.terminate()
478478

479-
Forcibly close the connection.
479+
Forcibly close the connection. Internally this calls [socket.destroy()][].
480480

481481
### websocket.url
482482

@@ -502,4 +502,5 @@ given `WebSocket`.
502502
https://nodejs.org/api/https.html#https_https_request_options_callback
503503
[permessage-deflate]:
504504
https://tools.ietf.org/html/draft-ietf-hybi-permessage-compression-19
505+
[socket.destroy()]: https://nodejs.org/api/net.html#net_socket_destroy_error
505506
[zlib-options]: https://nodejs.org/api/zlib.html#zlib_class_options

0 commit comments

Comments
 (0)