Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RTEnnuiServer

The RTEnnui server. There should be one instance of this for an entire system.

Hierarchy

  • RTEnnuiServer

Index

Constructors

Methods

Constructors

constructor

  • new RTEnnuiServer(_acceptLogin: (credentials: any) => Promise<string>): RTEnnuiServer
  • Parameters

    • _acceptLogin: (credentials: any) => Promise<string>
        • (credentials: any): Promise<string>
        • Function to call to accept (or reject) a login, given its credentials. Should return a room, or null to reject the login. If no room exists with the given name, one will be created.

          Parameters

          • credentials: any

          Returns Promise<string>

    Returns RTEnnuiServer

Methods

acceptConnection

  • acceptConnection(socket: WebSocket): Promise<void>
  • Accept a new connection.

    Parameters

    • socket: WebSocket

      The WebSocket which has just received a connection.

    Returns Promise<void>

Generated using TypeDoc