subscribeToStream

fun subscribeToStream(streamId: String): Promise

Subscribes to a stream. The subscription will automatically stop if the contact publishing the stream unpublishes it. The Conversation#streamAdded event will be fired when the stream becomes available The Conversation#streamRemoved event will be fired when the stream is no longer available The Conversation#hangup event will be fired the subscription is terminated.

Note that multiple Conversation#streamAdded and Conversation#streamRemoved events might be fired in case failure correction.

Return

Promise

Parameters

streamId

Identifies the stream to subscribe to.