Skip to content

Commit ddba690

Browse files
committed
[doc] Fix the type of the socket argument
1 parent d307684 commit ddba690

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/ws.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,7 @@ receives an `Error` if the server is already closed.
249249
### server.handleUpgrade(request, socket, head, callback)
250250

251251
- `request` {http.IncomingMessage} The client HTTP GET request.
252-
- `socket` {net.Socket|tls.Socket} The network socket between the server and
253-
client.
252+
- `socket` {stream.Duplex} The network socket between the server and client.
254253
- `head` {Buffer} The first packet of the upgraded stream.
255254
- `callback` {Function}.
256255

0 commit comments

Comments
 (0)