
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@heroiclabs/nakama-js-protobuf
Advanced tools
Websocket adapter adding protocol buffer support to the Nakama Javascript client.
Websocket adapter adding protocol buffer support to the nakama-js client.
Nakama is an open-source server designed to power modern games and apps. Features include user accounts, chat, social, matchmaker, realtime multiplayer, and much more.
Import the adapter into your project:
yarn add "@heroiclabs/nakama-js-protobuf"
Pass the Protobuf adapter to build the socket object.
import {Client} from "@heroiclabs/nakama-js";
import {WebSocketAdapterPb} from "@heroiclabs/nakama-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 WebSocketAdapterPb());
Use the WebSocket:
socket.ondisconnect = (evt) => {
console.info("Disconnected", evt);
};
const session = await socket.connect(session);
// Socket is open.
This project is licensed under the Apache-2 License.
FAQs
Websocket adapter adding protocol buffer support to the Nakama Javascript client.
The npm package @heroiclabs/nakama-js-protobuf receives a total of 70 weekly downloads. As such, @heroiclabs/nakama-js-protobuf popularity was classified as not popular.
We found that @heroiclabs/nakama-js-protobuf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.