# mezon-js-protobuf

> Websocket adapter adding protocol buffer support to the Mezon Javascript client.

Latest version **1.10.76** (published 2026-10-09) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install mezon-js-protobuf
pnpm add mezon-js-protobuf
yarn add mezon-js-protobuf
bun add mezon-js-protobuf
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.10.76 |
| Published | 2026-10-09 |
| First published | 2024-04-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Maintainers | huybui.1912, npm-mezonai, phuvinh010701, nguyentrannhan |
| Keywords | app server, client library, game server, mezon, realtime, realtime chat |

## Links

- npm: https://www.npmjs.com/package/mezon-js-protobuf
- Repository: https://github.com/nccasia/mezon-js
- Homepage: https://mezon.vn
- Issues: https://github.com/nccasia/mezon-js/issues
- npm.io page: https://npm.io/package/mezon-js-protobuf

## Dependencies (1)

- [protobufjs](https://npm.io/package/protobufjs.md) ^7.2.4

## Alternatives

- [@js-joda/timezone](https://npm.io/package/@js-joda/timezone.md) — 383.4K weekly downloads
- [chartjs-adapter-moment](https://npm.io/package/chartjs-adapter-moment.md) — 210.8K weekly downloads
- [strftime](https://npm.io/package/strftime.md) — 171.2K weekly downloads
- [vue-flatpickr-component](https://npm.io/package/vue-flatpickr-component.md) — 115.8K weekly downloads
- [timepicker](https://npm.io/package/timepicker.md) — 51.0K weekly downloads

## Recent versions

- 1.10.76 (latest) — 2026-10-09
- 1.10.75 — 2026-10-09
- 1.10.74 — 2026-10-07
- 1.10.73 — 2026-10-02
- 1.10.72 — 2026-10-02
- 1.10.71 — 2026-10-01
- 1.10.70 — 2026-09-30
- 1.10.69 — 2026-09-23
- 1.10.68 — 2026-09-21
- 1.10.67 — 2026-09-16
- 1.10.66 — 2026-08-21
- 1.10.65 — 2026-08-17
- 1.10.64 — 2026-08-14
- 1.10.63 — 2026-07-06
- 1.10.62 — 2026-07-02
- … 478 more at https://npm.io/package/mezon-js-protobuf/versions

## README

Mezon JavaScript Protobuf adapter
========================

> Websocket adapter adding protocol buffer support to the [mezon-js](https://www.npmjs.com/package/mezon-js) client.

[Mezon](https://github.com/mezon/mezon) is an open-source server designed to power modern games and apps. Features include user accounts, chat, social, matchmaker, realtime multiplayer, and much [more](https://mezon.vn).


## Getting Started

1. Import the adapter into your project:

    ```shell
    yarn add "mezon-js-protobuf"
    ```

2. Pass the Protobuf adapter to build the socket object.

    ```js
    import {Client} from "mezon-js";
    import {WebSocketAdapter} from "mezon-js-protobuf"

    const useSSL = false; // Enable if server is run with an SSL certificate.
    const client = new Client("defaultkey", "127.0.0.1", 7350, useSSL);

    const trace = false;
    const socket = client.createSocket(useSSL, trace, new WebSocketAdapter());
    ```

3. Use the WebSocket:

    ```js
    socket.ondisconnect = (evt) => {
        console.info("Disconnected", evt);
    };

    const session = await socket.connect(session);
    // Socket is open.
    ```

### License

This project is licensed under the [Apache-2 License](https://github.com/nccasia/mezon-js/blob/master/LICENSE).

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