Skip to content

createGameList beta ​

Function of @v12-engine/client

ts
export declare function createGameList(options: {
    server: string;
    play: (game: {
        url: string;
        watch: boolean;
        listing?: GameListing;
        ticket?: string;
    }) => void;
    socket?: (url: string) => QueueSocket;
    settingsStore?: SettingsStore;
}): GameListController;

A server's games (see GameListController). server is where its sockets are (ws://host:8787); play opens a game: its address, and whether to watch it