Skip to content

Commit 2eec64c

Browse files
committed
fix: forgot one explanation
1 parent e54b9e9 commit 2eec64c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/api/http.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,10 @@ event is not being listened for and the response status code is 101 Switching
505505
Protocols, clients receiving an upgrade header will have their connections
506506
closed.
507507

508+
This event is guaranteed to be passed an instance of the {net.Socket} class,
509+
a subclass of Duplex, instead of Duplex unless the user specifies a socket
510+
type other than {net.Socket}.
511+
508512
A client server pair demonstrating how to listen for the `'upgrade'` event.
509513

510514
```js

0 commit comments

Comments
 (0)