# websocket-grpc

> gRPC in websocket.

Latest version **1.1.6** (published 2022-05-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install websocket-grpc
pnpm add websocket-grpc
yarn add websocket-grpc
bun add websocket-grpc
```

## 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.1.6 |
| Published | 2022-05-27 |
| First published | 2022-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 3.6 KB |
| Known vulnerabilities | 0 (+10 in 1 direct dependencies) |
| Install scripts | no |
| Author | chenbinfa |
| Maintainers | lanmeng2022 |
| Keywords | gRPC, websocket, ws-grpc, websocket-grpc, RPC |

## Links

- npm: https://www.npmjs.com/package/websocket-grpc
- Repository: https://gitee.com/npm-packages/websocket-grpc
- npm.io page: https://npm.io/package/websocket-grpc

## Dependencies (2)

- [protobufjs](https://npm.io/package/protobufjs.md) ^6.11.2
- [websocket-request](https://npm.io/package/websocket-request.md) ^1.2.2

## 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.1.6 (latest) — 2022-05-27
- 1.1.5 — 2022-05-24
- 1.1.4 — 2022-05-10
- 1.1.3 — 2022-05-10
- 1.1.2 — 2022-05-10

## README

# websocket-grpc

## About

gRPC in websocket.


## How use

### npm
```bash
npm i websocket-grpc --save
```

### yarn

```bash
yarn add websocket-grpc -S
```

### example

```javascript

const WsProto = require('websocket-grpc');
const wsproto = new WsProto();
const wsUrl="ws://127.0.0.1";
await wsproto.init(
      wsUrl,
      "./ws.proto",
      "ReqMsgUpload",
      "RespMsg"
    );
 const res = await wsproto.request(payload);
 console.log(res);

```

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