Skip to content

five-on-it / apps/client/src/ui/online / placedServer

Function: placedServer() ​

placedServer(base, level, fetchFn?, session?): Promise<Placement | undefined>

Defined in: apps/client/src/ui/online.ts:86

Where a platform plays a city (GET /play?level=, as the session given: the fullest of its rooms with a place left, on whichever of its game servers, else the server with the most room; with a join token for a player), why it will not (refused: on a platform for the game's owners, no Steam account signed in, no copy, a ban), or undefined when nothing answers as a platform there (no API at that address, a platform of an older release, no server): the page then plays where it would have.

Parameters ​

base ​

string

level ​

string

fetchFn? ​

{(input, init?): Promise<Response>; (input, init?): Promise<Response>; }

session? ​

string

Returns ​

Promise<Placement | undefined>