From fb1aee2c4fa56c2b083b65421280e9f3de18af1a Mon Sep 17 00:00:00 2001 From: Daniel Villanueva Date: Fri, 24 Aug 2018 11:54:04 +0200 Subject: [PATCH] [CometD] Add extra property and extra method --- types/cometd/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/cometd/index.d.ts b/types/cometd/index.d.ts index 0ac377c241..cc97b304fe 100644 --- a/types/cometd/index.d.ts +++ b/types/cometd/index.d.ts @@ -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;