@vanhooferwin/node-websockify

    1.0.9 • Public • Published

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

    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. Unfortunately this library can't be used directly in a nodeJS program. Thats the reason why I created this project.

    Usage

    Import this module in your project

    npm install --save @vanhooferwin/node-websockify

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

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

    Example :

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

    Options

    Alias Values Default
    source URL of websocket Server null
    target URL of the VNC Server null
    web Directory of static sources exposed by the server null (optional)
    cert Path of the SSL certificate null (optional)
    key Key of the SSL certificate null (optional)

    Install

    npm i @vanhooferwin/node-websockify

    DownloadsWeekly Downloads

    5

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    8.82 kB

    Total Files

    4

    Last publish

    Collaborators

    • siteon