Skip to content

Commit

Permalink
[doc] Update the type of the socket argument
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed May 26, 2022
1 parent d68ba9e commit 903ec62
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 @@ -230,7 +230,8 @@ receives an `Error` if the server is already closed.
### server.handleUpgrade(request, socket, head, callback)

- `request` {http.IncomingMessage} The client HTTP GET request.
- `socket` {net.Socket} The network socket between the server and client.
- `socket` {net.Socket|tls.Socket} The network socket between the server and
client.
- `head` {Buffer} The first packet of the upgraded stream.
- `callback` {Function}.

Expand Down

0 comments on commit 903ec62

Please sign in to comment.