Merge pull request #2360 from pmccloghrylaing/sockjs-constructor

Update for SockJS definition to fix constructor arguments
This commit is contained in:
Bart van der Schoor committed 2014-06-18 20:58:05 +02:00
commit 6b5a45c451
1 file changed
+14 -7
+14 -7
View File
@@ -36,10 +36,17 @@ interface SockJS extends EventTarget {
declare var SockJS: {
prototype: SockJS;
new (url: string, options?: {
debug: boolean;
devel: boolean;
protocols_whitelist: string[];
}): SockJS;
}
new (url: string, _reserved: any, options?: {
debug?: boolean;
devel?: boolean;
protocols_whitelist?: string[];
server?: string;
rtt?: number;
rto?: number;
info?: {
websocket?: boolean;
cookie_needed?: boolean;
null_origin?: boolean;
};
}): SockJS;
};