From 2a3e3185335273fc48c826386c0a0fa83e0fb0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Qu=C3=A9r=C3=A9?= Date: Wed, 24 May 2017 11:58:53 +0200 Subject: [PATCH] Update demo code in README Since #ed4f859, subscribe method is not available on PFObject. So: we have to use the Client object to build the Subscription. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cb511fcd..4737c976 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ You can install the LiveQuery client via including it in your Podfile: The LiveQuery client interface is based around the concept of `Subscription`s. You can register any `PFQuery` for live updates from the associated live query server, by simply calling `subscribe()` on a query: ```swift let myQuery = Message.query()!.where(....) -let subscription: Subscription = myQuery.subscribe() +let subscription: Subscription = Client.shared.subscribe(myQuery) ``` Where `Message` is a registered subclass of PFObject.