Caplin Trader 4.7.1

Class: module:caplin/sljsadapter/providers/StreamLinkMessageService

module:caplin/sljsadapter/providers/StreamLinkMessageService

An implementation of caplin.services.messaging.MessageService to be used with StreamLink JS.

Constructor

new module:caplin/sljsadapter/providers/StreamLinkMessageService()

Implements:
Throws:
if constructed before the caplin.streamlink.StreamLink service has been registered.
Type
module:caplin/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:caplin/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:caplin/services/messaging/SubscriptionListener The listener for the subscription.
hints Map Additional parameters.
Implements:
Returns:
The subscription to the record.