Class
caplin.sljsadapter.providers

StreamLinkMessageService

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

Constructor Summary

Attributes Name and Description
caplin.sljsadapter.providers.StreamLinkMessageService()

Method Summary

Attributes Name and Description
void publish(String sSubject, Map mUpdateData, caplin.services.messaging.PublishListener oListener, Map mHints)

Publishes some data to a record.

void publishSessionMessage( sSubject, mUpdateData, oListener, mHints)

caplin.sljsadapter.providers.StreamLinkSubscription subscribe(String sSubject, caplin.services.messaging.SubscriptionListener oListener, Map mHints)

Creates a subscription to a record.

Constructor Detail

caplin.sljsadapter.providers.StreamLinkMessageService()

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

Method Detail

void publish(String sSubject, Map mUpdateData, caplin.services.messaging.PublishListener oListener, Map mHints)

Publishes some data to a record.

Parameters
String sSubject The subject of the record being published to.
Map mUpdateData The data to be published to the record.
caplin.services.messaging.PublishListener oListener The listener that will receive the publish events.
Map mHints Additional parameters.

void publishSessionMessage( sSubject, mUpdateData, oListener, mHints)

Parameters
sSubject
mUpdateData
oListener
mHints
See
caplin.services.messaging.MessageService#publishSessionMessage

caplin.sljsadapter.providers.StreamLinkSubscription subscribe(String sSubject, caplin.services.messaging.SubscriptionListener oListener, Map mHints)

Creates a subscription to a record.

Parameters
String sSubject The subject of the record being subscribed to.
caplin.services.messaging.SubscriptionListener oListener The listener for the subscription.
Map mHints Additional parameters.
Returns
The subscription to the record.