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
| Parameter | Type |
|---|---|
client | KrunkerClient |
Returns
PublicMatchmakerApi
Methods
gameInfo()
gameInfo(gameId): Promise<GameListEntry>;GET /game-info, one lobby as a game list entry
Parameters
| Parameter | Type |
|---|---|
gameId | string |
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>