mezon-js-protobuf 1.4.49 → 1.4.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/api/api.ts +18316 -17988
- package/dist/mezon-js-protobuf/api/api.d.ts +298 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Mezon JavaScript Protobuf adapter
|
|
2
2
|
========================
|
|
3
3
|
|
|
4
|
-
> Websocket adapter adding protocol buffer support to the [mezon-js](https://www.npmjs.com/package
|
|
4
|
+
> Websocket adapter adding protocol buffer support to the [mezon-js](https://www.npmjs.com/package/mezon-js) client.
|
|
5
5
|
|
|
6
6
|
[Mezon](https://github.com/heroiclabs/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).
|
|
7
7
|
|
|
@@ -11,14 +11,14 @@ Mezon JavaScript Protobuf adapter
|
|
|
11
11
|
1. Import the adapter into your project:
|
|
12
12
|
|
|
13
13
|
```shell
|
|
14
|
-
yarn add "
|
|
14
|
+
yarn add "mezon-js-protobuf"
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
2. Pass the Protobuf adapter to build the socket object.
|
|
18
18
|
|
|
19
19
|
```js
|
|
20
|
-
import {Client} from "
|
|
21
|
-
import {WebSocketAdapterPb} from "
|
|
20
|
+
import {Client} from "mezon-js";
|
|
21
|
+
import {WebSocketAdapterPb} from "mezon-js-protobuf"
|
|
22
22
|
|
|
23
23
|
const useSSL = false; // Enable if server is run with an SSL certificate.
|
|
24
24
|
const client = new Client("defaultkey", "127.0.0.1", 7350, useSSL);
|