Used correct types from websocket callbacks in 'jquery-jsonrpcclient'.

This commit is contained in:
Daniel Rosenwasser
2015-08-06 16:55:37 -07:00
parent e5a57c9bbb
commit 74528bc334
+4 -4
View File
@@ -9,10 +9,10 @@ interface JsonRpcClientOptions extends JQueryAjaxSettings {
ajaxUrl?: string;
headers?: {[key:string]: any};
socketUrl?: string;
onmessage?: () => void;
onopen?: () => void;
onclose?: () => void;
onerror?: () => void;
onmessage?: (ev: MessageEvent) => void;
onopen?: (ev: Event) => void;
onclose?: (ev: CloseEvent) => void;
onerror?: (ev: Event) => void;
getSockect?: (onmessageCb: () => void) => WebSocket;
}