Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IMatchmakingServer

Hierarchy

  • IMatchmakingServer

Index

Properties

connectCallback

connectCallback: ((connection: IMatchmakingServerConnection, path: string | undefined) => void) | undefined

directoryConnectionConnectedCallback

directoryConnectionConnectedCallback: ((directoryConnection: any) => void) | undefined

disconnectCallbacks

disconnectCallbacks: Map<string, () => void>

ipAddress

ipAddress: string | undefined

messageCallbacks

messageCallbacks: Map<string, (data: ArrayBuffer) => void>

port

port: number | undefined

Methods

checkConnection

  • checkConnection(): Promise<{ webRtcWorks: boolean; webSocketWorks: boolean }>
  • Returns Promise<{ webRtcWorks: boolean; webSocketWorks: boolean }>

getConnections

isRunning

  • isRunning(): boolean
  • Returns boolean

setLogCallback

  • setLogCallback(logFunc: ((...args: any[]) => void) | undefined): void
  • Parameters

    • logFunc: ((...args: any[]) => void) | undefined

    Returns void

start

  • start(port?: undefined | number, disableServerDirectoryConnection?: undefined | false | true): string
  • Parameters

    • Optional port: undefined | number
    • Optional disableServerDirectoryConnection: undefined | false | true

    Returns string

stop

  • stop(): void
  • Returns void

updateDirectory

updateName

  • updateName(name: string): void
  • Parameters

    • name: string

    Returns void

Generated using TypeDoc