Diffusion Apple API 6.12.0
Unified Client Library for iOS, tvOS and OS X / macOS
Loading...
Searching...
No Matches
<PTDiffusionStreamDelegate> Protocol Reference

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

#include <PTDiffusionStreamDelegate.h>

Inheritance diagram for <PTDiffusionStreamDelegate>:
<PTDiffusionBinaryRequestStreamDelegate> PTDiffusionDefaultStreamDelegate <PTDiffusionJSONRequestStreamDelegate> <PTDiffusionNumberRequestStreamDelegate> <PTDiffusionRecordV2RequestStreamDelegate> <PTDiffusionSessionResponseStreamDelegate> <PTDiffusionStringRequestStreamDelegate> <PTDiffusionSubscriberStreamDelegate> <PTDiffusionTopicNotificationListener>

Instance Methods

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

Detailed Description

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

See also
PTDiffusionTopicsFeature
PTDiffusionMessagingFeature
Since
5.6

Method Documentation

◆ diffusionDidCloseStream:

- (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

◆ diffusionStream:didFailWithError:

- (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