diff --git a/doc/ws.md b/doc/ws.md index 744112018..8a0c4ce64 100644 --- a/doc/ws.md +++ b/doc/ws.md @@ -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}.