UNPKG

frc-ui

Version:

React Web UI

19 lines (18 loc) 423 B
interface OptionProps { host: string; path: string; userId: string; token: string; } declare class Socket { worker: any; _callbacks: any; constructor(); leave: () => void; start: (opt: OptionProps) => void; on: (event: any, fn: any) => this; off: (event: any, fn: any) => this; emit: (event: any, arg: any) => this; } declare const _default: Socket; export default _default;