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

Introduction

The stream delegate protocol defines the methods to be implemented by classes wishing to receive streaming updates.

See Also
PTDiffusionTopicsFeature
PTDiffusionMessagingFeature
Since
5.6
Inheritance diagram for <PTDiffusionStreamDelegate>:
<PTDiffusionBinaryRequestStreamDelegate> PTDiffusionDefaultStreamDelegate <PTDiffusionFetchStreamDelegate> <PTDiffusionJSONRequestStreamDelegate> <PTDiffusionMessageStreamDelegate> <PTDiffusionNumberRequestStreamDelegate> <PTDiffusionRecordV2RequestStreamDelegate> <PTDiffusionSessionResponseStreamDelegate> <PTDiffusionStringRequestStreamDelegate> <PTDiffusionSubscriberStreamDelegate> <PTDiffusionSubscriptionRoutingRequestHandler> <PTDiffusionTopicNotificationListener>

Instance Methods

(void) - diffusionStream:didFailWithError:
 
(void) - diffusionDidCloseStream:
 

Method Documentation

- (void) diffusionDidCloseStream: (PTDiffusionStream *)  stream

The stream closed normally.

Parameters
streamThe stream that closed.
Note
No further messages will be sent to the delegate for this stream.
Since
5.6
- (void) diffusionStream: (PTDiffusionStream *)  stream
didFailWithError: (NSError *)  error 

The stream closed prematurely.

Parameters
streamThe stream that closed.
errorThe reason why the stream closed.
Note
No further messages will be sent to the delegate for this stream.
Since
5.6