Skip to content
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

TypeError on npm Start #6

Open
sayantan94 opened this issue Jan 12, 2017 · 2 comments
Open

TypeError on npm Start #6

sayantan94 opened this issue Jan 12, 2017 · 2 comments

Comments

@sayantan94
Copy link

It needs to be rfb2
var RFB = require('rfb2');

After making the changes, npm start throws an error:
`Listening on port 8090
(node:11204) DeprecationWarning: process.EventEmitter is deprecated. Use require('events') instead.
Client connected
TypeError: RFB is not a function
at createRfbConnection (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\server.js:91:9)
at Socket. (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\server.js:132:15)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at SocketNamespace.handlePacket (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\node_modules\socket.io\lib\namespace.js:335:22)
at Manager.onClientMessage (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\node_modules\socket.io\lib\manager.js:518:38)
at WebSocket.Transport.onMessage (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\node_modules\socket.io\lib\transport.js:369:20)
at Parser. (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\node_modules\socket.io\lib\transports\websocket\hybi-16.js:39:10)
at emitOne (events.js:96:13)
at Parser.emit (events.js:188:7)
C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\server.js:59
r.on('error', function (e) {
^

TypeError: Cannot read property 'on' of undefined
at addEventHandlers (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\server.js:59:4)
at createRfbConnection (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\server.js:103:3)
at Socket. (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\server.js:132:15)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at SocketNamespace.handlePacket (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\node_modules\socket.io\lib\namespace.js:335:22)
at Manager.onClientMessage (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\node_modules\socket.io\lib\manager.js:518:38)
at WebSocket.Transport.onMessage (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\node_modules\socket.io\lib\transport.js:369:20)
at Parser. (C:\Users\bhowmiks\Experiments\cloneTest\js-vnc-demo-project\node_modules\socket.io\lib\transports\websocket\hybi-16.js:39:10)
at emitOne (events.js:96:13)`

@seI3en
Copy link

seI3en commented Jun 12, 2021

I forked off before the 'switch to rfb' commit, replaced outdated libs and fixed update polling

it works now on Windows 10 with TightVNC Server 2.8.59 (run as Administrator)

https://github.com/seI3en/js-vnc-demo-project

@rezamarzban
Copy link

I forked off before the 'switch to rfb' commit, replaced outdated libs and fixed update polling

it works now on Windows 10 with TightVNC Server 2.8.59 (run as Administrator)

https://github.com/seI3en/js-vnc-demo-project

It works but viewing picture color and refresh has some problems ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants