From 7c87c725394347ed6bd6747475de6d35631c2468 Mon Sep 17 00:00:00 2001 From: Michael Mimeault Date: Mon, 13 Mar 2017 09:27:36 -0400 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ef31b28..c4b6357 100644 --- a/README.md +++ b/README.md @@ -30,11 +30,12 @@ Snapshots of the development version are available in [Sonatype's `snapshots` re ## Use Client -The LiveQuery client interface is based around the concept of `Subscription`s. You can register any `ParseQuery` for live updates from the associated live query server, by simply calling `subscribe()` on a the client: +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); 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")`. Once you've subscribed to a query, you can `handle` events on them, like so: ```java