Closed LiST-GIT closed 6 months ago
That's expected.
new WebSocket(null)
is not a public API. Use new WebSocket(null, undefined, {})
.
new WebSocket(address[, protocols][, options])
In the declaration, both protocols and options are optional. However, if I usenew WebSocket(null, undefined, {})
to avoid errors, it could cause compatibility issues. I have encountered this problem. If this is expected behavior, then I will close the issue.
address
can't be null
. It's a special value ws
uses to create server-side instances, but that is not an official API.
Okay, I got it. Thank you for your answer.
Is there an existing issue for this?
Description
ws version
8.16.0
Node.js Version
v20.5.0
System
No response
Expected result
No response
Actual result
No response
Attachments
No response