Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ktlint = "12.1.0"
dokka = "2.0.0"
kotlinx_datetime = "0.6.2"
kotlinx_coroutines = "1.10.2"
pubnub_js = "9.8.1"
pubnub_js = "10.1.0"
pubnub_swift = "9.3.2"

[libraries]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ public interface HereNow extends Endpoint<PNHereNowResult> {
HereNow includeState(boolean includeState);

HereNow includeUUIDs(boolean includeUUIDs);

HereNow limit(int limit);

HereNow offset(Integer offset);
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import com.pubnub.api.PubNubException;
import com.pubnub.api.UserId;
import com.pubnub.api.enums.PNLogVerbosity;
import com.pubnub.api.java.PubNub;
import com.pubnub.api.java.v2.PNConfiguration;
import com.pubnub.api.models.consumer.presence.PNHereNowChannelData;
Expand All @@ -17,6 +18,7 @@ public static void main(String[] args) throws PubNubException {
// Configure PubNub instance
PNConfiguration.Builder configBuilder = PNConfiguration.builder(new UserId("demoUserId"), "demo");
configBuilder.publishKey("demo");
configBuilder.logVerbosity(PNLogVerbosity.BODY);
configBuilder.secure(true);

PubNub pubnub = PubNub.create(configBuilder.build());
Expand All @@ -25,6 +27,8 @@ public static void main(String[] args) throws PubNubException {
pubnub.hereNow()
.channels(Arrays.asList("coolChannel", "coolChannel2"))
.includeUUIDs(true)
.limit(100)
.offset(10)
.async(result -> {
result.onSuccess((PNHereNowResult res) -> {

Expand Down
Loading
Loading