# jsockbridge

> JSockBridge : Web Socket TCP Socket

Latest version **1.0.2** (published 2017-07-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install jsockbridge
pnpm add jsockbridge
yarn add jsockbridge
bun add jsockbridge
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-07-14 |
| First published | 2017-07-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | admin@cryogena.net |
| Maintainers | cryogena |
| Keywords | web, socket, tcp, tcpsocket, websocket, bridge, port |

## Links

- npm: https://www.npmjs.com/package/jsockbridge
- npm.io page: https://npm.io/package/jsockbridge

## Dependencies (3)

- [net](https://npm.io/package/net.md) ^1.0.2
- [http](https://npm.io/package/http.md) 0.0.0
- [sockjs](https://npm.io/package/sockjs.md) ^0.3.18

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-07-14
- 1.0.1 — 2017-07-14
- 1.0.0 — 2017-07-14

## README

Web Socket to TCP Socket bridge

Usage:

    var jsockbridge=require(`jsockbridge`);
    var bridge=jsockbridge({
        port:18246,
        pref:"bridge",
        ondata:(type,msg)=>{
            // console.log(`${type} : ${msg}`);
        },
        onopen:()=>{
            console.log(`Bridge opened!`);
        },
        onclosed:()=>{
            console.log(`Bridge closed!`);
        }
    });
    
    ws://(ip):18246/bridge

First message sent to bridge must be:

    init|:|(dest ip)|:|(dest port)

For example:

    init|:|localhost|:|53840

---
_Source: https://npm.io/package/jsockbridge · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
