UNPKG

@needle-tools/networking

Version:
22 lines (18 loc) 648 B
export declare type NetworkingOptions = { /** Networking endpoint for the websocket connection. Must be a relative path */ endPoint: string; /** Max allowed number of users per room */ maxUsers: number; /** Timeout in seconds for when to kick an idle/inactive user. A user is idle when the server didnt receive a ping or any message for a certain amount of time */ defaultUserTimeout: number; } export declare type Room = { id: string; viewId: string; clients: Client[]; clientSettings: any[]; owners: object; state: object; isDirty: boolean; clientTimeout: number; }