sidorares / node-rfb2

rfb wire protocol client and server
MIT License
138 stars 27 forks source link

rfb connection only emits one "rect" event #6

Closed bux closed 10 years ago

bux commented 10 years ago

I have the issue that I only get one "rect" event right after a successfully connecting to a RealVNC Server (5.1.0 x64) on Windows 7 SP1 x64.

Only workaround is a setInterval with requestUpdate()

sidorares commented 10 years ago

Afaik there is no way to tell server "please send me updates immediadely". I usually do requestUpdate in rect event handler

bux commented 10 years ago

Interesting. Now I'm wondering how Minko Gechev from "VNC client on 200 lines of JavaScript" (https://github.com/mgechev/js-vnc-demo-project) achieved the nearly realtime updates. Haven't found any requestUpdate in his code.

sidorares commented 10 years ago

if you send requestUpdate every time you receive data it's actually looks very good