WebSocket adapter that adds Protocol Buffer support to the mezon-js client library for the Mezon realtime server. Version 1.10.58 is the latest stable release; updated frequently alongside mezon-js. Provides efficient binary serialization over WebSocket connections, enabling compact data exchange for game and app backends. Ships with TypeScript definitions, requires the long package for 64-bit integer support.
npm install mezon-js-protobufNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import the WebSocketAdapter, pass it to client.createSocket, and connect using a session token.
Remove any arguments from new WebSocketAdapter().
Keep mezon-js and mezon-js-protobuf versions in sync.
Upgrade mezon-js to the latest version.
Install long: npm install long@^5.0.0
Use import { WebSocketAdapter } from 'mezon-js-protobuf'Run npm install long@^5.0.0