Diffusion Apple API  5.9.24
Unified Client Library for iOS, OS X and tvOS
 All Classes Functions Variables Properties Pages
Instance Methods | List of all members
<PTDiffusionSubscriberStreamDelegate> Protocol Reference

Introduction

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.

See Also
PTDiffusionStreams
Since
5.9
Inheritance diagram for <PTDiffusionSubscriberStreamDelegate>:
<PTDiffusionStreamDelegate> <PTDiffusionBinaryValueStreamDelegate> <PTDiffusionJSONValueStreamDelegate>

Instance Methods

(void) - diffusionStream:didSubscribeToTopicPath:specification:
 
(void) - diffusionStream:didUnsubscribeFromTopicPath:specification:reason:
 
- Instance Methods inherited from <PTDiffusionStreamDelegate>
(void) - diffusionStream:didFailWithError:
 
(void) - diffusionDidCloseStream:
 

Method Documentation

- (void) diffusionStream: (PTDiffusionStream *)  stream
didSubscribeToTopicPath: (NSString *)  topicPath
specification: (PTDiffusionTopicSpecification *)  specification 
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.

Parameters
streamThe stream that received the update.
topicPathThe topic path to which the session has been subscribed.
specificationThe specification for the subscribed topic.
Since
5.9
- (void) diffusionStream: (PTDiffusionStream *)  stream
didUnsubscribeFromTopicPath: (NSString *)  topicPath
specification: (PTDiffusionTopicSpecification *)  specification
reason: (PTDiffusionTopicUnsubscriptionReason)  reason 
optional

A topic has been unsubscribed.

Parameters
streamThe stream that received the update.
topicPathThe topic path from which the session has been unsubscribed.
specificationThe specification for the unsubscribed topic.
reasonThe reason for the unsubscription.
Since
5.9