From 62e9b199ad96e6f7d4b44a7ed84669fdaf48ba65 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Thu, 7 Apr 2022 15:51:59 +0200 Subject: [PATCH] [doc] Fix nits --- doc/ws.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/ws.md b/doc/ws.md index 0489a772a..ed8f04f1c 100644 --- a/doc/ws.md +++ b/doc/ws.md @@ -291,7 +291,7 @@ This class represents a WebSocket. It extends the `EventEmitter`. - `skipUTF8Validation` {Boolean} Specifies whether or not to skip UTF-8 validation for text and close messages. Defaults to `false`. Set to `true` only if the server is trusted. - - Any other option allowed in [http.request()][] or [https.request()][]. + - Any other option allowed in [`http.request()`][] or [`https.request()`][]. Options given do not have any effect if parsed from the URL given with the `address` parameter. @@ -539,7 +539,7 @@ state is `CONNECTING`. ### websocket.terminate() -Forcibly close the connection. Internally this calls [socket.destroy()][]. +Forcibly close the connection. Internally this calls [`socket.destroy()`][]. ### websocket.url @@ -610,11 +610,11 @@ as configured by the `maxPayload` option. [concurrency-limit]: https://github.com/websockets/ws/issues/1202 [duplex-options]: https://nodejs.org/api/stream.html#stream_new_stream_duplex_options -[http.request()]: +[`http.request()`]: https://nodejs.org/api/http.html#http_http_request_options_callback -[https.request()]: +[`https.request()`]: 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 +[`socket.destroy()`]: https://nodejs.org/api/net.html#net_socket_destroy_error [zlib-options]: https://nodejs.org/api/zlib.html#zlib_class_options