Skip to content

A simple WebSocket-to-TCP proxy/bridge you can use in NodeJS

License

Notifications You must be signed in to change notification settings

Craigzyc/node-websockify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebSocket-to-TCP proxy/bridge in NodeJS

Build Status License

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

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('node-websockify');
websockify({
source: 'url:port',
target: 'url:port',
web : './directory',
cert: 'certSSL',
key: 'certSSL-key'
});

Example :

var websockify = require('node-websockify');
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)

About

A simple WebSocket-to-TCP proxy/bridge you can use in NodeJS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%