Interface HubProxy

Index

Call signatures

Properties

Methods

Call signatures

(connection: HubConnection, hubName: string): HubProxy

Parameters

Returns

HubProxy

Properties

public connection: HubConnection

public hubName: string

public state: any

Methods

public hasSubscriptions(): boolean

Returns

boolean

public init(connection: HubConnection, hubName: string)

Parameters

public invoke(methodName: string, args?: Array<any>): JQueryDeferred

Parameters

  • methodName: string
  • args?: Array<any> optional

Returns

JQueryDeferred

public off(eventName: string, callback: (msg: any) => void): HubProxy

Parameters

  • eventName: string
  • callback: (msg: any) => void

Returns

HubProxy

public on(eventName: string, callback: (...msg: any[]) => void): HubProxy

Parameters

  • eventName: string
  • callback: (...msg: any[]) => void

Returns

HubProxy