Merge pull request #709 from TerenceLewis/master

Fix for 0.9 compatibility and bugfix for 'on' callback.
This commit is contained in:
Diullei Gomes
2013-06-26 04:39:10 -07:00
+2 -2
View File
@@ -65,7 +65,7 @@ interface HubProxy {
(connection: HubConnection, hubName: string): HubProxy;
init(connection: HubConnection, hubName: string): void;
hasSubscriptions(): bool;
on(eventName: string, callback: (msg) => void ): HubProxy;
on(eventName: string, callback: (...msg) => void ): HubProxy;
off(eventName: string, callback: (msg) => void ): HubProxy;
invoke(methodName: string, ...args: any[]): JQueryDeferred;
}
@@ -79,7 +79,7 @@ interface HubConnectionSettings {
interface HubConnection extends SignalR {
//(url?: string, queryString?: any, logging?: bool): HubConnection;
proxies;
received(callback: (data: { Id; Method; Hub; State; Args; }) => void ): void;
received(callback: (data: { Id; Method; Hub; State; Args; }) => void ): HubConnection;
createHubProxy(hubName: string): HubProxy;
}