-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
websockify.js : Server disconnected (code: 1006) #3
Comments
You have some incompatibility between websockify and the version of WebSocketServer you are using. I would suggest upgrading to the latest version of @DirectXMan12, perhaps time to push something updated to npm? |
@DirectXMan12 Any update on upgrading the version in NPM? |
Getting a similar error with the latest node on Windows Server 2008 R2: PS C:\> node --version
v10.1.0
PS C:\> npm --global ls
`-- websockify@0.7.1
+-- optimist@0.6.1
| +-- minimist@0.0.10
| `-- wordwrap@0.0.3
+-- policyfile@0.0.6
`-- ws@5.2.0
`-- async-limiter@1.0.0 I'm getting the following error: WebSocket settings:
- proxying from :7777 to localhost:5900
- Running in encrypted HTTPS (wss://) mode using: foo.pem, foo.pem
C:\Users\Administrator\AppData\Roaming\npm\node_modules\websockify\websockify.js:129
callback(true, 'binary');
^
TypeError: callback is not a function
at Object.selectProtocol [as handleProtocols] (C:\Users\Administrator\AppData\Roaming\npm\node_modules\websockify\we
bsockify.js:129:9)
at WebSocketServer.completeUpgrade (C:\Users\Administrator\AppData\Roaming\npm\node_modules\websockify\node_modules\
ws\lib\websocket-server.js:260:33)
at WebSocketServer.handleUpgrade (C:\Users\Administrator\AppData\Roaming\npm\node_modules\websockify\node_modules\ws
\lib\websocket-server.js:220:10)
at Server.upgrade (C:\Users\Administrator\AppData\Roaming\npm\node_modules\websockify\node_modules\ws\lib\websocket-
server.js:78:16)
at Server.emit (events.js:182:13)
at onParserExecuteCommon (_http_server.js:535:14)
at onParserExecute (_http_server.js:482:3) Does anyone know of a working version of node and this version of websockify? At some point there was a working combination. This issue seems to indicate that windows was working at some point in the beginning of this year. |
As an update I was able to get this working with this version of websockify.js using node 10.1.0. I think I just need to package this up as a node module and install it globally. |
The problem is the |
Ah, thanks. We'll have to update our dependencies then. Thanks for figuring it out. |
node : v.6.11.5
[email protected]
#websockify crashed when I conneccted at vnc.html
trace back stack :
updated:
full dependency as follows
└─┬ [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
The text was updated successfully, but these errors were encountered: