"# node-multi-websockify" "# node-multi-websockify"
npm install @sukkis/node-multi-websockify
npm install --save @sukkis/node-multi-websockify
`
Usage
`javascript
const websockify = require('@sukkis/node-multi-websockify')
...
...
websockify(server, [{target: 'localhost:5900', path: '/path1'},{target: 'localhost:5900', path: '/path2'}]) // create websockify servers in array of objects
`
$3
`javascript
const express = require('express')
const app = express()
const server = require('http').Server(app)
const port = process.env.PORT || 8080
const websockify = require('@sukkis/node-multi-websockify')
server.listen(port, () => console.log('listening on *:' + port))
websockify(server, [{target: 'localhost:5900', path: '/path1'},{target: 'localhost:5900', path: '/path2'}]) // create websockify servers in array of objects
`
$3
`javascript
const http = require('http')
const port = process.env.PORT || 8080
const websockify = require('@sukkis/node-multi-websockify')
const server = http.createServer()
server.listen(port)
websockify(server, [{target: 'localhost:5900', path: '/path1'},{target: 'localhost:5900', path: '/path2'}]) // create websockify servers in array of objects
``