wf.js

1.0.3 • Public • Published

wf.js

A simple Websocket forwarder.

Installation

  • Modules Installation
npm install wf.js 

Example

const ws = require('ws').Server
const wss = new ws({ port: 8080 })
const wf = require('wf.js')

wss.on('connection', wf('ws://echo.websocket.org'))

Or

const ws = require('ws').Server
const wss = new ws({ port: 8080 })
const wf = require('wf.js')

wss.on('connection', function (ws) {
 wf('ws://echo.websocket.org')(ws);
});

Feedback

Any question or doubt can join our Discord Server.

Readme

Keywords

none

Package Sidebar

Install

npm i wf.js

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

2.21 kB

Total Files

4

Last publish

Collaborators

  • yonle