Caplin Trader 5.1.0

Class: module:ct-sljsadapter/providers/StreamLinkMessageService

module:ct-sljsadapter/providers/StreamLinkMessageService()

An implementation of ct-services/messaging/MessageService to be used with StreamLink JS.

Constructor

new module:ct-sljsadapter/providers/StreamLinkMessageService()

Implements:
Throws:

if constructed before the caplin.streamlink.StreamLink service has been registered.

Type
module:ct-core/Error

Methods

dispose()

Implements:
See:

onSubscriptionDisposed()

Implements:
See:

publish(subject, updateData, listener, hints)

Publishes some data to a record.

Parameters:
Name Type Description
subject String

The subject of the record being published to.

updateData Map

The data to be published to the record.

listener module:ct-services/messaging/PublishListener

The listener that will receive the publish events.

hints Map

Additional parameters.

Implements:

publishSessionMessage()

Implements:
See:

subscribe(subject, listener, hints)

Creates a subscription to a record.

Parameters:
Name Type Description
subject String

The subject of the record being subscribed to.

listener module:ct-services/messaging/SubscriptionListener

The listener for the subscription.

hints Map

Additional parameters.

Implements:
Returns:

The subscription to the record.