Interface SocketNamespace

Index

Properties

Methods

Properties

public json: any

public log: any

public store: any

public volatile: any

Methods

public authorization(fn: Function): SocketNamespace

Parameters

  • fn: Function

Returns

SocketNamespace

public clients(room: string): Socket[]

Parameters

  • room: string

Returns

Socket[]

public emit(ev: any, data?: Array<any>): Socket

Parameters

  • ev: any
  • data?: Array<any> optional

Returns

Socket

public except(id: any): SocketNamespace

Parameters

  • id: any

Returns

SocketNamespace

public in(room: string): SocketNamespace

Parameters

  • room: string

Returns

SocketNamespace

public on(evt: string, fn: (socket: "socket.io".Socket) => void): SocketNamespace

Parameters

  • evt: string
  • fn: (socket: "socket.io".Socket) => void

Returns

SocketNamespace

public send(data: any): any

Parameters

  • data: any

Returns

any

public socket(sid: any, readable: boolean): Socket

Parameters

  • sid: any
  • readable: boolean

Returns

Socket

public to(room: string): SocketNamespace

Parameters

  • room: string

Returns

SocketNamespace