NEXIS
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_id and client token.
  • @triformine/nexis-sdk in your client app.

Install SDK

bun add @triformine/nexis-sdk

Integration Flow

  1. Connect client
  2. Join or create room instance
  3. Receive initial state.snapshot
  4. Send room messages (room.send) and/or RPC
  5. Apply incremental state.patch updates
  6. Handle reconnect/resume

Continue with Quickstart.

Typed Join Step

async function (: ) {
  await .('counter_plugin_room', { : 'counter_plugin_room:default' });
}

On this page