@live-game/sdk
v0.4.0
Published
Live Game SDK for game and control iframe integrations.
Readme
@live-game/sdk
SDK for Live Game iframe apps and control panels.
import { createSDK } from "@live-game/sdk";
import { useGameState, useGameConfig, sendCmd } from "@live-game/sdk/react";Common control-panel flow:
const sdk = createSDK();
const config = await sdk.config.get();
await sdk.config.update({ ...config, duration: 180 });
await sdk.command.send({ type: "next_round" });Publish game state for control panels:
await sdk.state.publish({ round: 2, status: "playing" });