UNPKG

@game-vir/multiplayer

Version:

Client side definitions and types for @game-vir/multiplayer-server

16 lines (15 loc) 439 B
import { omitObjectKeys } from '@augment-vir/common'; /** * This error is thrown when a multiplayer room connection is established but then intentionally * rejected by the host client. * * @category Error */ export class RoomRejectionError extends Error { name = 'RoomRejectionError'; room; constructor(room) { super('Room connection rejected'); this.room = omitObjectKeys(room, ['roomPassword']); } }