UNPKG

@lobstar/preact

Version:

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

5 lines (4 loc) 273 B
import { ErrorCode } from "@lobstar/core"; export type CustomMessageHandler = (data: unknown, peerId: string) => void; export type ErrorHandler = (code: ErrorCode, message: string, context?: string, originalError?: unknown) => void; export type KickedHandler = () => void;