From dc09e291df70f2b26959c5824c390753abd7792d Mon Sep 17 00:00:00 2001 From: Giedrius Grabauskas Date: Mon, 7 Mar 2016 15:15:26 +0200 Subject: [PATCH] Updated to SignalR 2.2.0 --- angular-signalr-hub/angular-signalr-hub.d.ts | 34 ++++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/angular-signalr-hub/angular-signalr-hub.d.ts b/angular-signalr-hub/angular-signalr-hub.d.ts index 302794106..d08e6356b 100644 --- a/angular-signalr-hub/angular-signalr-hub.d.ts +++ b/angular-signalr-hub/angular-signalr-hub.d.ts @@ -10,64 +10,64 @@ declare module ngSignalr { /** * Creates a new Hub connection */ - new(hubName: string, options: HubOptions) : Hub + new (hubName: string, options: HubOptions): Hub } - + class Hub { hubName: string; - connection: SignalR; - proxy: HubProxy; - + connection: SignalR.Connection; + proxy: SignalR.Hub.Proxy; + on(event: string, fn: (...args: any[]) => void): void; invoke(method: string, ...args: any[]): JQueryDeferred; disconnect(): void; connect(): JQueryPromise; } - + interface HubOptions { /** * Collection of client side callbacks */ - listeners?: { [index: string] : (...args: any[]) => void }; - + listeners?: { [index: string]: (...args: any[]) => void }; + /** * String array of server side methods which the client can call */ methods?: Array; - + /** * Sets the root path for the SignalR web service */ rootPath?: string; - + /** * Object representing additional query params to be sent on connection */ - queryParams?: { [index: string] : string }; - + queryParams?: { [index: string]: string }; + /** * Function to handle hub connection errors */ errorHandler?: (error: string) => void; - + /** * Enable/disable logging */ logging?: boolean; - + /** * Use a shared global connection or create a new one just for this hub, defaults to true */ useSharedConnection?: boolean; - + /** * Sets transport method (e.g 'longPolling' or ['webSockets', 'longPolling'] ) */ transport?: any; - + /** * Function to handle hub connection state changed event */ - stateChanged?: (state: SignalRStateChange) => void; + stateChanged?: (state: SignalR.StateChanged) => void; } }