From 588ab716a9a9cdabd81f8849c7b22460c85abcc3 Mon Sep 17 00:00:00 2001 From: Roger Hu Date: Mon, 20 Mar 2017 01:09:01 -0700 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c4b6357..91012a9 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Snapshots of the development version are available in [Sonatype's `snapshots` re The LiveQuery client interface is based around the concept of `Subscriptions`. You can register any `ParseQuery` for live updates from the associated live query server, by simply calling `subscribe()` on a the client: ```java -ParseLiveQueryClient parseLiveQueryClient = ParseLiveQueryClient.Factory.get(URI); +ParseLiveQueryClient parseLiveQueryClient = ParseLiveQueryClient.Factory.getClient(URI); SubscriptionHandling subscriptionHandling = parseLiveQueryClient.subscribe(parseQuery) ``` Note: The exected protocol for URI is `ws` instead of `http`, like in this example: `URI("ws://192.168.0.1:1337/1")`.