why deepstreamHub? compare us getting started feature roadmap faq
use cases pricing
products
developers
company
blog contact

Record data changed listener, used to be notified whenever the record data under a path has been modified either locally or remotely.

Methods

onRecordPathChanged(_:path:data:)

func onRecordPathChanged(_ recordName: String, path: String, data: JsonElement)
argument type description
recordName String The name of the record that changed
path String The path that data changed within
data JsonElement The data under the path as an Object

Called when the listener is added via Record.subscribe(_:callback:triggerNow:)

Will contain the data under the path, regardless of whether triggered by a Patch or Update