Skip to content

Commit c1a126f

Browse files
committed
[doc] Rename WS Error Codes section to Error codes
1 parent a6dbd1c commit c1a126f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/ws.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
- [websocket.terminate()](#websocketterminate)
5050
- [websocket.url](#websocketurl)
5151
- [createWebSocketStream(websocket[, options])](#createwebsocketstreamwebsocket-options)
52-
- [WS Error Codes](#ws-error-codes)
52+
- [Error codes](#error-codes)
5353
- [WS_ERR_EXPECTED_FIN](#ws_err_expected_fin)
5454
- [WS_ERR_EXPECTED_MASK](#ws_err_expected_mask)
5555
- [WS_ERR_INVALID_CLOSE_CODE](#ws_err_invalid_close_code)
@@ -353,7 +353,7 @@ been closed.
353353
- `error` {Error}
354354

355355
Emitted when an error occurs. Errors may have a `.code` property, matching one
356-
of the string values defined below under [WS Error Codes](#ws-error-codes).
356+
of the string values defined below under [Error codes](#error-codes).
357357

358358
### Event: 'message'
359359

@@ -587,7 +587,7 @@ The URL of the WebSocket server. Server clients don't have this attribute.
587587
Returns a `Duplex` stream that allows to use the Node.js streams API on top of a
588588
given `WebSocket`.
589589

590-
## WS Error Codes
590+
## Error codes
591591

592592
Errors emitted by the websocket may have a `.code` property, describing the
593593
specific type of error that has occurred:

0 commit comments

Comments
 (0)