
Six months ago, the idea of
GIF sockets - real-time communication using animated GIF as a transport was stated on Habré.
The idea is that in the format of an animated GIF, the number of frames is not indicated, so after displaying the picture, the browser waits for new frames from the server until it receives signal bits about the end of the file. In other words, the server can easily push into the browser messages over an open channel in the GIF.
Today on the githaba is published the
vnc-over-gif program, which elegantly uses this principle. The program takes screenshots of the screen and transmits them through animated gif.
The program is based on
node-gif and
node-rfb2 .
')
Installation
npm install -g vnc-over-gif
Using
We start the server
$> PORT=4455 vnc-over-gif
Open URL in browser
http: // localhost: 4455 / screen.gif? host = localhost & port = 5900 & password = secret