Caplin Trader 5.1.0

Class: module:ct-services/testing/SubscriptionStub

module:ct-services/testing/SubscriptionStub(listener, record)

new module:ct-services/testing/SubscriptionStub(listener, record)

A SubscriptionStub stubs out a module:ct-services/messaging/Subscription instance for the purpose of components which rely on streamed data.

This class uses emitr.

Parameters:
Name Type Description
listener module:ct-services/messaging/SubscriptionListener

Listener to this subscription

record module:ct-services/testing/RecordStub
Implements:

Methods

dispose()

Implements:
See:

getSubject()

Implements:
See:

isPaused()

Implements:
See:

pause()

Implements:
See:

resume()

Implements:
See: