Update cometd.d.ts

added couple of functions: clearListeners, clearSubscriptions, configure, handshake, disconnect;
This commit is contained in:
Ika
2015-09-22 11:59:51 +04:00
parent 09e37435ff
commit f4beede5f5

11
cometd/cometd.d.ts vendored
View File

@@ -8,12 +8,23 @@ declare module CometD {
var onListenerException: (exception: any, subscriptionHandle: any, isListener: boolean, message: string) => void;
function init(options: ConfigurationOptions): void;
function configure(config: ConfigurationOptions): void;
function addListener(channel: string, listener: (message: any) => void): void;
function removeListener(listener: (message: any) => void): void;
function clearListeners(): void;
function clearSubscriptions(): void;
function handshake(handshake_params: any): void;
function publish(channel: string, message: any): void;
function disconnect(): void;
interface ConfigurationOptions {
url: string;
logLevel?: string;