Skip to content

five-on-it / apps/client/src/ui/lobby / followLobby

Function: followLobby() ​

followLobby(platform, lobby, on, retryMs?): () => void

Defined in: apps/client/src/ui/lobby.ts:184

Follows the feed for a lobby (from its newest event), until the returned stop is called: its changes (with the lobby as the reader sees it), its run opened with the reader's join URL, the reader no longer in it. A failed ask is tried again after retryMs.

Parameters ​

platform ​

Platform

lobby ​

string

on ​

LobbyFollower

retryMs? ​

number = 3000

Returns ​

() => void