declare namespace SocketIOClient { export interface Socket { onJson(event: string): Promise } }