-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
- [ x] I've searched for any related issues and avoided creating a duplicate issue.
Description
I'm using ws as a client in my node application, and when I attempt to connect to the host, the connection is closed with the error 'Websocket RangeError: Invalid WebSocket frame: RSV2 and RSV3 must be clear'.
It is worth noting that the connection is successful to a different host, but I believe this is a client issue?
It's also worth noting that faye-websocket functions correctly in the same situation.
Reproducible in:
version: 5.1.1
Node.js version(s): 8.9.4
OS version(s): Windows 7 Professional v6.1 (build 7601)
Steps to reproduce:
- Run the following code inside of a Node Application:
const WebSocket = require('ws')
const ws = new WebSocket('ws://site:8765/ws')
ws.on('message', data => {
console.log(data)
})
ws.on('error', err => { console.log(err) })
ws.on('close', () => { console.log('close') })
Metadata
Metadata
Assignees
Labels
No labels