Diffusion Apple API
5.9.24
Unified Client Library for iOS, OS X and tvOS
|
Methods implemented by classes handling streamed subscription events for value topics.
This protocol defines optional methods implemented by classes wishing to receive streamed subscription events.
Instance Methods | |
(void) | - diffusionStream:didSubscribeToTopicPath:specification: |
(void) | - diffusionStream:didUnsubscribeFromTopicPath:specification:reason: |
Instance Methods inherited from <PTDiffusionStreamDelegate> | |
(void) | - diffusionStream:didFailWithError: |
(void) | - diffusionDidCloseStream: |
|
optional |
A topic has been subscribed to.
This is called when a client becomes subscribed to a topic. This method is also called when a stream is added that matches a topic to which the session is already subscribed.
This will always be the first notification to the stream for a topic.
Currently, topic properties are not available via this notification.
stream | The stream that received the update. |
topicPath | The topic path to which the session has been subscribed. |
specification | The specification for the subscribed topic. |
|
optional |
A topic has been unsubscribed.
stream | The stream that received the update. |
topicPath | The topic path from which the session has been unsubscribed. |
specification | The specification for the unsubscribed topic. |
reason | The reason for the unsubscription. |