Skip to content

Commit

Permalink
[doc] Improve websocket.terminate() documentation
Browse files Browse the repository at this point in the history
Fixes #1858
  • Loading branch information
lpinca committed Mar 3, 2021
1 parent 489a295 commit cbff929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/ws.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit cbff929

Please sign in to comment.