Interface Socket

Index

Properties

Methods

Properties

public broadcast: any

public handshake: any

public id: string

public json: any

public log: any

public volatile: any

Methods

public del(key: string, fn: Function): Socket

Parameters

  • key: string
  • fn: Function

Returns

Socket

public disconnect(): Socket

Returns

Socket

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

Parameters

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

Returns

Socket

public get(key: string, fn: Function): Socket

Parameters

  • key: string
  • fn: Function

Returns

Socket

public has(key: string, fn: Function): Socket

Parameters

  • key: string
  • fn: Function

Returns

Socket

public in(room: string): Socket

Parameters

  • room: string

Returns

Socket

public join(name: string, fn: Function): Socket

Parameters

  • name: string
  • fn: Function

Returns

Socket

public leave(name: string, fn: Function): Socket

Parameters

  • name: string
  • fn: Function

Returns

Socket

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

Parameters

  • ns: string
  • fn: Function

Returns

Socket

public send(data: any, fn: Function): Socket

Parameters

  • data: any
  • fn: Function

Returns

Socket

public set(key: string, value: any, fn: Function): Socket

Parameters

  • key: string
  • value: any
  • fn: Function

Returns

Socket

public to(room: string): Socket

Parameters

  • room: string

Returns

Socket