# proxyfight

> WebSocketWebSocket proxy

Latest version **0.1.0** (published 2018-03-08) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2018-03-08 |
| First published | 2018-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Bill Barnes |
| Maintainers | billba |

## Links

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

## Dependencies (1)

- [ws](https://npm.io/package/ws.md) ^5.0.0

## Recent versions

- 0.1.0 (latest) — 2018-03-08

## README

# proxyfight

Extremely simple proxy to connect a "server" (sender) and a "client" (receiver).

**proxyfight is a supported Microsoft product. Use at your own risk.**

# use

* `npm install proxyfight`
* `node lib/proxy.js 8080` (or the port number of your choice)

## client (receiver)

```ts
import * as WebSocket from 'ws'; // skip this line if you're in a browser

const ws = new WebSocket('ws://localhost:8000/client');

ws.on('open', () => {
    console.log("client connected");
    ws.on('message', message => {
        console.log(`client received ${message}`);
    })
});
```

## server (sender)

```ts
import * as WebSocket from 'ws'; // skip this line if you're in a browser

const ws = new WebSocket('ws://localhost:8000/server');

ws.on('open', () => {
    console.log("server connected");
    ws.send("hey"),
});
```

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