1.0.7 • Published 4 years ago

@maximegris/node-websockify v1.0.7

Weekly downloads
29
License
MIT
Repository
github
Last release
4 years ago

WebSocket-to-TCP proxy/bridge in NodeJS (forked & inspired by https://github.com/novnc/websockify)

Build Status License

Node-websockify is a WebSocket-to-TCP proxy/bridge you can use in a NodeJS program.

As said it is inspired of the javascript library of https://github.com/novnc/websockify. Sadly this librairy can't be used directly in a nodeJS program taht's why I created this project.

Usage

Import this module in your project

npm install --save node-websockify

Require the module and call the main function in your programm code

var websockify = require('@maximegris/node-websockify');
websockify({
source: 'url:port',
target: 'url:port',
web : './directory',
cert: 'certSSL',
key: 'certSSL-key'
});

Example :

var websockify = require('@maximegris/node-websockify');
websockify({  source: '127.0.0.1:8080', target: '192.168.0.100:5900'});

Options

AliasValuesDefault
sourceURL of websocket Servernull
targetURL of the VNC Servernull
webDirectory of static sources exposed by the servernull (optional)
certPath of the SSL certificatenull (optional)
keyKey of the SSL certificatenull (optional)
1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago