Interface SocketManager

Index

Properties

Methods

Properties

public sockets: SocketNamespace

Methods

public configure(env: string, fn: Function): SocketManager

Parameters

  • env: string
  • fn: Function

Returns

SocketManager

public configure(fn: Function): SocketManager

Parameters

  • fn: Function

Returns

SocketManager

public disable(key: any): SocketManager

Parameters

  • key: any

Returns

SocketManager

public disabled(key: any): boolean

Parameters

  • key: any

Returns

boolean

public enable(key: any): SocketManager

Parameters

  • key: any

Returns

SocketManager

public enabled(key: any): boolean

Parameters

  • key: any

Returns

boolean

public get(key: any): any

Parameters

  • key: any

Returns

any

public of(nsp: string): SocketNamespace

Parameters

  • nsp: string

Returns

SocketNamespace

public on(ns: string, fn: Function): SocketManager

Parameters

  • ns: string
  • fn: Function

Returns

SocketManager

public set(key: any, value: any): SocketManager

Parameters

  • key: any
  • value: any

Returns

SocketManager