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

Introduction

Handler for receiving messages from clients, with associated content and optional information.

See Also
PTDiffusionMessagingControlFeature
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
6.0
Inheritance diagram for <PTDiffusionMessageDelegate>:
<PTDiffusionTopicTreeRegistrationDelegate>

Instance Methods

(void) - diffusionTopicTreeRegistration:hadMessageFromSessionId:path:content:context:
 
- Instance Methods inherited from <PTDiffusionTopicTreeRegistrationDelegate>
(void) - diffusionTopicTreeRegistrationDidClose:
 
(void) - diffusionTopicTreeRegistration:didFailWithError:
 

Method Documentation

- (void) diffusionTopicTreeRegistration: (PTDiffusionTopicTreeRegistration *)  registration
hadMessageFromSessionId: (PTDiffusionSessionId *)  sessionId
path: (NSString *)  path
content: (PTDiffusionContent *)  content
context: (PTDiffusionReceiveContext *)  context 

Receives messages sent from client sessions using a path.

The path will be one within the branch for which the handler was registered.

Parameters
registrationThe topic tree registration for which this handler applies.
sessionIdIdentifies the client session that sent the message.
pathThe message path that the message was sent to.
contentThe message content sent by the client.
contextReceive context (including headers) associated with the message.
Since
6.0