# @ezgame/rpc

> EasyGame rpc module

Latest version **1.0.13** (published 2023-07-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install @ezgame/rpc
pnpm add @ezgame/rpc
yarn add @ezgame/rpc
bun add @ezgame/rpc
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.13 |
| Published | 2023-07-18 |
| First published | 2021-11-29 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 66 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | QiaoJie |
| Maintainers | qiaojie |

## Links

- npm: https://www.npmjs.com/package/@ezgame/rpc
- npm.io page: https://npm.io/package/@ezgame/rpc

## Dependencies (3)

- [websocket](https://npm.io/package/websocket.md) ^1.0.34
- [@ezgame/log](https://npm.io/package/@ezgame/log.md) ^1.0.3
- [@ezgame/int64](https://npm.io/package/@ezgame/int64.md) ^1.0.3

## Recent versions

- 1.0.13 (latest) — 2023-07-18
- 1.0.12 — 2023-07-14
- 1.0.10 — 2022-05-08
- 1.0.9 — 2022-05-08
- 1.0.8 — 2022-03-03
- 1.0.7 — 2022-03-02
- 1.0.6 — 2022-01-07
- 1.0.5 — 2022-01-07
- 1.0.4 — 2021-11-29
- 1.0.3 — 2021-11-29
- 1.0.2 — 2021-11-29

## README

# EasyGame rpc module

## overview
this module is ezgame rpc module

## install
`npm i @ezgame/rpc`


## usage

```typescript

import { TCPCommunicator } from "@ezgame/rpc"
import * as Log from "@ezgame/log"
import * as protocol from './protocol'

const Tag = "TEST"

async function run(){
    try{
        var comm = new TCPCommunicator();
        var proxy = await comm.connect("localhost", 7001, protocol.TestProxy);
        var r = await proxy.test("aaa", 111);
        Log.debug(Tag, "test result: ", r);
    }
    catch(e){
        Log.error(Tag, "error: ", e);
    }
}

run();
```

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