Skip to content

Commit a1bc22b

Browse files
author
Devendra
committed
Merge branch 'd19325' of github.com:pubnub/java into d19325
2 parents 1bc188b + 0fadf3d commit a1bc22b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎java/srcPubnubApi/srcCore/com/pubnub/api/PubnubCoreAsync.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ String[] getPresenceHeartbeatUrl() {
7373
if (channelString.length() <= 0 && channelGroupString.length() <= 0) {
7474
return null;
7575
}
76+
77+
// if we do not have any channels but only channel groups: add , as channelString.
78+
if (channelString.length() <= 0 && channelGroupString.length() > 0 ) {
79+
channelString = ",";
80+
}
81+
7682
return new String[] { getPubnubUrl(), "v2", "presence", "sub-key", this.SUBSCRIBE_KEY, "channel",
7783
PubnubUtil.urlEncode(channelString), "heartbeat" };
7884
}

0 commit comments

Comments
 (0)