colyseus
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • MatchMaker

Index

Properties

availableRooms

availableRooms: object

Type declaration

  • [name: string]: Room<any>[]

handlers

handlers: object

Type declaration

  • [id: string]: any[]

roomCount

roomCount: number = 0

roomsById

roomsById: object

Type declaration

  • [name: number]: Room<any>

Methods

addHandler

  • addHandler(name: string, handler: Function, options?: any): void
  • Parameters

    • name: string
    • handler: Function
    • Default value options: any = {}

    Returns void

create

  • create(client: Client, roomName: string, clientOptions: any): Room<any>

disposeRoom

  • disposeRoom(roomName: string, room: Room<any>): void

getRoomById

  • getRoomById(roomId: number): Room<any>

hasAvailableRoom

  • hasAvailableRoom(roomName: string): boolean

hasHandler

  • hasHandler(roomName: string): boolean

joinById

  • joinById(client: Client, roomId: number, clientOptions: any): Room<any>

joinOrCreateByName

  • joinOrCreateByName(client: Client, roomName: string, clientOptions: any): Room<any>

lockRoom

  • lockRoom(roomName: string, room: Room<any>): void

requestJoin

  • requestJoin(client: Client, roomName: string, clientOptions: any): Room<any>

unlockRoom

  • unlockRoom(roomName: string, room: Room<any>): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc