We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e54b9e9 commit 2eec64cCopy full SHA for 2eec64c
doc/api/http.md
@@ -505,6 +505,10 @@ event is not being listened for and the response status code is 101 Switching
505
Protocols, clients receiving an upgrade header will have their connections
506
closed.
507
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
+
512
A client server pair demonstrating how to listen for the `'upgrade'` event.
513
514
```js
0 commit comments