krapio
Library referenceClasses

PublicMatchmakerApi

matchmaker.krunker.io, plain json without an envelope; the game polls the list every 60 s

Constructors

Constructor

new PublicMatchmakerApi(client): PublicMatchmakerApi;

Parameters

ParameterType
clientKrunkerClient

Returns

PublicMatchmakerApi

Methods

gameInfo()

gameInfo(gameId): Promise<GameListEntry>;

GET /game-info, one lobby as a game list entry

Parameters

ParameterType
gameIdstring

Returns

Promise<GameListEntry>


gameList()

gameList(): Promise<GameList>;

GET /game-list, every public lobby (47 KB)

Returns

Promise<GameList>


pingList()

pingList(): Promise<PingList>;

GET /ping-list, region key -> lobby host to ping

Returns

Promise<PingList>

On this page