Skip to content

Commit 404a247

Browse files
committed
Fix tests
1 parent 8819089 commit 404a247

2 files changed

Lines changed: 359 additions & 523 deletions

File tree

‎java/srcPubnubApi/com/pubnub/api/PubnubCore.java‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -924,9 +924,11 @@ public void handleError(HttpRequest hreq, PubnubError error) {
924924
*/
925925
public void presence(String channel, Callback callback)
926926
throws PubnubException {
927-
Hashtable args = new Hashtable(2);
928-
args.put("channel", channel + PRESENCE_SUFFIX);
927+
Hashtable<String, Object> args = new Hashtable<String, Object>(2);
928+
929+
args.put("channels", new String[] {channel + PRESENCE_SUFFIX});
929930
args.put("callback", callback);
931+
930932
subscribe(args);
931933
}
932934

0 commit comments

Comments
 (0)