Skip to content

Realtime updates

Alexey Bukhtin edited this page May 20, 2019 · 3 revisions
let notificationFeed = Client.shared.flatFeed(feedSlug: "notification")
var subscription = notificationFeed?.subscribe(typeOf: Activity.self) { result in /* ... */ }
// Keep `subscription` object until you need realtime updates and then to unsubscribe set it to nil:
subscription = nil

Clone this wiki locally