UNPKG

@lobstar/preact

Version:

A collection of Preact hooks to use Lobstar library for network and lobby management for multiplayer web games

6 lines (5 loc) 211 B
import { GameSessionManager, SessionState } from "@lobstar/core"; /** * Hook to track session state changes */ export declare function useSessionState(session: GameSessionManager | null): SessionState | null;