SongGuess
    Preparing search index...
    • Custom React hook that provides a RoomController instance for managing the connection and state of a room.

      Parameters

      • host: string

        the host used when creating the socket connection.

      • roomID: string

        The ID of the room to connect to.

      • getCookies: CookieGetter

        What cookies are currently set.

      • setCookies: CookieSetter

        A function to allow updating cookies.

      Returns { getController: () => RoomController | null; isReady: boolean }

      An object containing a getController method to access the RoomController instance.