Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Adapter

Base Adapter class. Adapters are where connections from hosts are accepted and mapped to Contexts. The host connection requests a Context from a sessionId. If no matching Context is found, a new one is created and the 'connection' event is raised.

Hierarchy

Index

Constructors

Events

Accessors

Methods

Constructors

constructor

Events

onConnection

  • onConnection(handler: function): this
  • The onConnection event is raised when a new Context is created for an application session. This happens when the first client connects to your application.

    Parameters

    Returns this

Accessors

logger

port

  • get port(): string | number

server

  • get server(): Server
  • set server(value: Server): void

Methods

Abstract listen

  • listen(): Promise<Server>