subscribeToEmailMessages

abstract suspend fun subscribeToEmailMessages(id: String, subscriber: EmailMessageSubscriber)

Subscribes to be notified of new and deleted EmailMessages. Subscribing multiple times with the same subscriber id will cause the previous subscriber to be unsubscribed.

Parameters

id

String Unique identifier of the subscriber.

subscriber

EmailMessageSubscriber Subscriber to notify.