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

Introduction

Methods implemented by classes handling messaging responses from individual sessions.

See Also
PTDiffusionMessagingFeature
Since
6.1
Inheritance diagram for <PTDiffusionSessionResponseStreamDelegate>:
<PTDiffusionStreamDelegate> <PTDiffusionBinarySessionResponseStreamDelegate> PTDiffusionDefaultSessionResponseStreamDelegate <PTDiffusionJSONSessionResponseStreamDelegate> <PTDiffusionNumberSessionResponseStreamDelegate> <PTDiffusionRecordV2SessionResponseStreamDelegate> <PTDiffusionStringSessionResponseStreamDelegate>

Instance Methods

(void) - diffusionStream:didReceiveError:fromSessionId:
 
(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
Deprecated:
since 6.6 this method is no longer called; in a future release, PTDiffusionSessionResponseStreamDelegate will no longer extend PTDiffusionStreamDelegate

Reimplemented from <PTDiffusionStreamDelegate>.

- (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
Deprecated:
since 6.6 this method is no longer called; in a future release, PTDiffusionSessionResponseStreamDelegate will no longer extend PTDiffusionStreamDelegate

Reimplemented from <PTDiffusionStreamDelegate>.

- (void) diffusionStream: (PTDiffusionStream *)  stream
didReceiveError: (NSError *)  error
fromSessionId: (PTDiffusionSessionId *)  sessionId 

Called when a session responds to a request with an error.

Parameters
streamThe stream that received the response.
errorThe error generated by the responding session.
sessionIdThe id of the responding session.
Since
6.1