Closed yuhao423 closed 3 weeks ago
See https://nodejs.org/api/http.html#event-upgrade and https://nodejs.org/api/http.html#event-upgrade_1. The former is emitted on the client, the latter on the server. The arguments are the same.
Thanks, I should spend more time looking at the HTTP API documentation.
I'm closing this as answered.
Is there an existing issue for this?
Description
Hello lpinca, this is not a bug report, I've been reading the ws source code recently and it's great, but a question that is confusing me is what are the three parameters that are returned after sending an http request to upgrade,
res
I understand is the upgrade field that is returned by the server, andsocket
andhead
I don't know what they are. The specific code is lib/websocket.jsinitAsClient
function in the req.on('upgrade'),sorry to bother you.ws version
No response
Node.js Version
No response
System
No response
Expected result
No response
Actual result
No response
Attachments
No response