@henkkelder/ng2-signalr
Version:
An angular typescript library that allows you to connect to Asp.Net SignalR
28 lines (27 loc) • 1.38 kB
TypeScript
import { ConnectionTransport } from './connection/connection.transport';
import { IConnectionOptions } from './connection/connection.options';
export declare class SignalRConfiguration implements IConnectionOptions {
/** connection url to the SignalR service */
url: string;
/** Allows you to specify query string parameters object when the client connects */
qs?: any;
/** name of the SignalR service hub to connect to */
hubName: string;
/** disable/enables client side logging. Defaults to false */
logging: boolean;
/** Allows jsonp. This flag can be used to suppport CORS on older browsers */
jsonp: boolean;
/** Allows withCredentials. This flag can be used to suppport CORS */
withCredentials: boolean;
/** Allows pingInterval */
pingInterval?: number;
/** Allows you to specify transport. You can specify a fallback order if you wan't to try specific transports in order. By default selects best avaliable transport. */
transport: ConnectionTransport | ConnectionTransport[];
/** Allows you to run the event callback outside ngZone */
executeEventsInZone?: boolean;
/** Allows you to run the errors callback outside ngZone */
executeErrorsInZone?: boolean;
/** Allows you to run the status change in callback outside ngZone */
executeStatusChangeInZone?: boolean;
constructor();
}