Methods
emit
- emit<T>(name: string | string[], target: number | "global", args?: NoFunction<T>[]): Promise<any>
Type parameters
Parameters
name: string | string[]
target: number | "global"
listen
- listen(name: string | string[], handler: (source: number, ...args: any) => any): number[]
Parameters
name: string | string[]
handler: (source: number, ...args: any) => any
- (source: number, ...args: any): any
Parameters
source: number
Rest ...args: any
Returns any
Returns number[]
Emit an event from Server to Client