Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WebSocketsController

Hierarchy

  • WebSocketsController

Index

Constructors

constructor

Properties

Private Readonly config

config: ApplicationConfig

Private Readonly contextCreator

contextCreator: WsContextCreator

Private Readonly metadataExplorer

metadataExplorer: GatewayMetadataExplorer = new GatewayMetadataExplorer(new MetadataScanner(),)

Private Readonly socketServerProvider

socketServerProvider: SocketServerProvider

Methods

Private assignServerToProperties

  • assignServerToProperties<T>(instance: NestGateway, server: object): void

getConnectionHandler

mergeGatewayAndServer

  • mergeGatewayAndServer(instance: NestGateway, metatype: Type<unknown> | Function, moduleKey: string): void

pickResult

  • pickResult(defferedResult: Promise<any>): Promise<Observable<any>>

subscribeConnectionEvent

  • subscribeConnectionEvent(instance: NestGateway, event: Subject<any>): void

subscribeDisconnectEvent

  • subscribeDisconnectEvent(instance: NestGateway, event: Subject<any>): void

subscribeEvents

subscribeInitEvent

  • subscribeInitEvent(instance: NestGateway, event: Subject<any>): void

subscribeMessages

subscribeToServerEvents

  • subscribeToServerEvents<T>(instance: NestGateway, options: T, port: number, moduleKey: string): void

Generated using TypeDoc