vnc.js: how to build a JavaScript VNC Client

vnc.js: how to build a JavaScript VNC Client

 vnc.js

vnc.js architecture

 

Connectivity between components in vnc.js

 

var host = “127.0.0.1”;
var port = 5900;
var sock = new TCPClient(host,port);
sock.on(“connected”, function() {
  log(“connected to “ + host + “:” + port);
  sock.send(“Hello from a browser!”);
});
sock.on(“closed”, function() {
  log(“The connection has closed :(“);
});
sock.on(“data”, function(msg){
  log(“data arrived: “ + msg);
});
sock.connect();

RFB protocol 3.3

code on Github – vnc.js and tcp.js

 

 

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s