New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

wspipe

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wspipe

web socket to tcp service pipe library

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
6
500%
Maintainers
1
Weekly downloads
 
Created
Source

build status

WebSocket to TCP pipe (wspipe)

Connects WebSocket and TCP (bridge TCP socket over WS).

Usage

First create a WebSocket Server connection

var WebSocketServer = require('ws').Server;
var server = new WebSocketServer({port:80, path:'/mysocket'});

Let wspipe bridge the WS to TCP

var WebSocketPipe = require('wspipe');
var debug = true;
var tcpServerHost = 'localhost';
var tcpServerPort = 3474;
var wspipe = new WebSocketPipe(server, debug, tcpServerHost, tcpServerPort);
// thats' it ... all new connections to ws are automatically taken care of

Examples

MQTT over WebSocket

To do a MQTT client/WS to WS <--> MQTT Broker, please refer to examples/ws-mqtt.js

Keywords

websocket

FAQs

Package last updated on 04 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts