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


Methods implemented by classes handling streamed events for JSON value topics.

This protocol defines the methods to be implemented by classes wishing to receive streamed events when updates are received from the server for JSON topics.

See Also
Inheritance diagram for <PTDiffusionJSONValueStreamDelegate>:
<PTDiffusionSubscriberStreamDelegate> <PTDiffusionStreamDelegate>

Instance Methods

(void) - diffusionStream:didUpdateTopicPath:specification:oldJSON:newJSON:
- Instance Methods inherited from <PTDiffusionSubscriberStreamDelegate>
(void) - diffusionStream:didSubscribeToTopicPath:specification:
(void) - diffusionStream:didUnsubscribeFromTopicPath:specification:reason:
- Instance Methods inherited from <PTDiffusionStreamDelegate>
(void) - diffusionStream:didFailWithError:
(void) - diffusionDidCloseStream:

Method Documentation

- (void) diffusionStream: (PTDiffusionValueStream *)  stream
didUpdateTopicPath: (NSString *)  topicPath
specification: (PTDiffusionTopicSpecification *)  specification
oldJSON: (nullable PTDiffusionJSON *)  oldJson
newJSON: (PTDiffusionJSON *)  newJson 

An update was received for a topic path handled by a JSON value stream.

streamThe value stream that received the update.
topicPathThe topic path that was updated.
specificationThe specification for the updated topic.
oldJsonThe previous value. If nil then this is the first value.
newJsonThe new value derived from the last update received from the server.