[CometD] Add extra property and extra method

This commit is contained in:
Daniel Villanueva
2018-08-24 11:54:04 +02:00
committed by GitHub
parent 37926fac89
commit fb1aee2c4f
+4
View File
@@ -21,12 +21,16 @@ declare namespace CometD {
}
interface CometD {
websocketEnabled?: boolean;
onListenerException: (exception: any, subscriptionHandle: any, isListener: boolean, message: string) => void;
init(options: CometD.ConfigurationOptions): void;
configure(config: CometD.ConfigurationOptions): void;
subscribe(channel: string, listener: (message: any) => void): void;
addListener(channel: string, listener: (message: any) => void): void;
removeListener(listener: (message: any) => void): void;