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
<PTDiffusionMessageStreamDelegate> Protocol Reference

Introduction

The message stream delegate protocol defines the methods to be implemented by classes wishing to receive messages.

See Also
PTDiffusionMessagingFeature
Deprecated:
Since 6.2. One-way messaging has been deprecated in favor of request-response messaging. This protocol will be removed in a future release. see: Messaging with the Apple client library.
Since
5.6
Inheritance diagram for <PTDiffusionMessageStreamDelegate>:
<PTDiffusionStreamDelegate>

Instance Methods

(void) - diffusionStream:didReceiveMessageOnTopicPath:content:context:
 
- Instance Methods inherited from <PTDiffusionStreamDelegate>
(void) - diffusionStream:didFailWithError:
 
(void) - diffusionDidCloseStream:
 

Method Documentation

- (void) diffusionStream: (PTDiffusionStream *)  stream
didReceiveMessageOnTopicPath: (NSString *)  path
content: (PTDiffusionContent *)  content
context: (PTDiffusionReceiveContext *)  context 

A message was received for a path handled by the topic stream.

Parameters
streamThe message stream that received the message.
pathThe path on which the message was received.
contentThe content of the message.
contextThe message context.
Since
5.6