Interface ISubscriber

Index

Methods

Methods

public addSubscription(subscription: any): ISubscription

Parameters

  • subscription: any

Returns

ISubscription

public subscribe(eventEmitterOrSubscription: any, args?: Array<any>): ISubscription

Parameters

  • eventEmitterOrSubscription: any
  • args?: Array<any> optional

Returns

ISubscription

public subscribeToCommand(eventEmitter: any, args?: Array<any>): ISubscription

Parameters

  • eventEmitter: any
  • args?: Array<any> optional

Returns

ISubscription

public subscribeWith(eventEmitter: any, methodName: string, args: any): ISubscription

Parameters

  • eventEmitter: any
  • methodName: string
  • args: any

Returns

ISubscription

public unsubscribe(object?: any): any

Parameters

  • object?: any optional

Returns

any