cloakfall
    Preparing search index...

    Function lobbyUrl

    • The lobby server's URL. A page that names its lobby with a cloakfall-lobby meta tag (the website's copy of the game, against the hosted lobby) uses that tag's origin, when it is an http: or https: URL; anything else in the tag is ignored. Without one, it is port 3002 on the host the page was loaded from, so a phone that opened the game from the laptop's LAN address (http://192.168.x.y:8080) reaches the laptop's lobby (npm run serve:lobby), not itself. Outside a page (Node, tests), or for a page opened from a file, it is localhost.

      Parameters

      • location: Pick<Location, "protocol" | "hostname"> | null = ...

        The page's location: the global one by default, null when there is none.

      • configured: string | null = ...

        The lobby URL the page names: its meta tag's by default, null for none.

      Returns string