SocketHandle: {
connected: boolean;
disconnected: boolean;
disconnect(): void;
emit(event, data): void;
on(event, listener): void;
}
Type declaration
connected: boolean
disconnected: boolean
disconnect:function
- disconnect(): void
Returns void
emit:function
- emit(event, data): void
Returns void
on:function
- on(event, listener): void
Parameters
event: string
listener: ((data) => void)
Returns void