export type OnMessage = (clientID: string, message: Object) => any
export type OnClientConnectionChange = (clientID: string, isOnline : boolean) => any

export interface RTMT {
    sendMessage: (clientID: string, channel: string, message: Object) => any;
    listenMessage: (channel: string, callback: OnMessage) => any;
    isClientOnline(clientID: string): boolean;
    listenOnClientConnectionChange(onUserConnectionChange: OnClientConnectionChange): void;
}