Getting started
Getting Started
The fastest path from zero to a working multiplayer loop.
Getting Started
Use this section if your goal is: player connects, joins a room, sends gameplay actions, receives synchronized state.
Prerequisites
- Nexis running locally or remotely.
- A
project_idand client token. @triformine/nexis-sdkin your client app.
Install SDK
bun add @triformine/nexis-sdkIntegration Flow
- Connect client
- Join or create room instance
- Receive initial
state.snapshot - Send room messages (
room.send) and/or RPC - Apply incremental
state.patchupdates - Handle reconnect/resume
Continue with Quickstart.
Typed Join Step
async function (: ) {
await .('counter_plugin_room', { : 'counter_plugin_room:default' });
}