JME - Application Documentation
    Preparing search index...

    Type Alias PeerContextType

    Shape of the peer networking context provided to React components

    type PeerContextType = {
        connectedPeerIds: string[];
        connectionError: string | null;
        connections: DataConnection[];
        createHost: () => void;
        disconnect: () => void;
        hostId?: string;
        isConnecting: boolean;
        isHost: boolean;
        joinHost: (id: string) => void;
        send: (msg: NetMessage) => void;
    }
    Index

    Properties

    connectedPeerIds: string[]
    connectionError: string | null
    connections: DataConnection[]
    createHost: () => void
    disconnect: () => void
    hostId?: string
    isConnecting: boolean
    isHost: boolean
    joinHost: (id: string) => void
    send: (msg: NetMessage) => void