declare class Socket { private ws; private host; private token; private isConnected; private message; constructor(host: string, token: string); connect(): void; onMessage(handler: (e: any) => any): void; send(msg: string): void; close(): void; } export default Socket;