node-websockify is a WebSocket-to-TCP proxy/bridge you can use in a NodeJS program
npm install nodev6-websockifybash
npm install --save nodev6-websockify
`
Require the module and call the main function in your programm code
`javascript
var websockify = require('nodev6-websockify');
websockify({
source: 'url:port',
target: 'url:port',
web : './directory',
cert: 'certSSL',
key: 'certSSL-key'
});
`
Example :
`javascript
var websockify = require('node-websockify');
websockify({
source: '127.0.0.1:8080',
target: '192.168.0.100:5900'
});
``