StompJS: Fix errorCallback and connectCallback

This commit is contained in:
MaximeAnsquer 2018-08-28 13:42:10 +02:00 committed by GitHub
parent 8884e18dc9
commit e3b8500485
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ export class Client {
debug(...args: string[]): any;
connect(headers: { login: string, passcode: string, host?: string }, connectCallback: (frame?: Frame | string) => any, errorCallback?: (error: Frame) => any): any;
connect(headers: { login: string, passcode: string, host?: string }, connectCallback: (frame?: Frame) => any, errorCallback?: (error: Frame | string) => any): any;
connect(headers: { }, connectCallback: (frame?: Frame) => any, errorCallback?: (error: Frame | string) => any): any;
connect(login: string, passcode: string, connectCallback: (frame?: Frame) => any, errorCallback?: (error: Frame | string) => any, host?: string): any;
disconnect(disconnectCallback: () => any, headers?: {}): any;