chatchat/src/PlayerIOClient.development....

32 lines
967 B
TypeScript

declare enum PlayerIOErrorCode {
}
declare class PlayerIOError {
code: PlayerIOErrorCode;
message: string;
stack: any;
}
declare namespace PlayerIO {
let useSecureApiRequests: boolean;
const authenticate: (gameId: string, connectionId: string, authenticationArguments: Record<string, string>, playerInsightSegments: Array<string>, successCallback: (client: PlayerIO.Client) => void, errorCallback: (error: PlayerIOError) => void) => void;
class Client {
multiplayer: Multiplayer;
}
class Multiplayer {
useSecureConnections: boolean;
listRooms: (roomType: string, searchCriteria: Record<string, string>, resultLimit: number, resultOffset: number, successCallback: (rooms: Array<RoomInfo>) => void, errorCallback: (error: PlayerIOError) => void) => void
}
class RoomInfo {
id: string;
onlineUsers: number;
roomData: Record<string, string>;
roomType: string;
}
}