Function createGameRoomAndJoin

  • Creates a game room and joins the caller as the first connected member.

    Parameters

    • ctx: Context

      Request context.

    • options: GameOptions

      Room options including player count.

    • type: string

      Game type identifier.

    • components: ComponentConstructor[]

      Component constructors.

    • timeout: number

      Empty-room timeout in milliseconds.

    Returns GameRoomData

    Created game room data.