You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)`
The text was updated successfully, but these errors were encountered:
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)`
The text was updated successfully, but these errors were encountered: