ChannelGroup SDK entity

As of version 9.0.0, the Java software development kit (SDK) supports SDK entities. SDK entities are local objects that bundle operations for a specific resource type and simplify working with PubNub application programming interfaces (APIs).

Use SDK entities to perform common tasks without manually wiring requests. Some PubNub APIs are exposed via SDK entities. Other operations remain available on the pubnub object.

Create ChannelGroup​

Use this factory method to return a local ChannelGroup SDK entity for a single channel group. A ChannelGroup SDK entity centralizes operations—such as creating a subscription—so you can prototype and build faster.

1pubnub.channelGroup(String name)
required
name required#
Type: String
Name of the channel group for which to create the SDK entity.

Sample code​

1

Available operations​

The ChannelGroup SDK entity provides operations for PubNub channel groups.

Operation (click for more information)Description
subscription(subscriptionOptions)Returns a local channel group subscription object with optional parameters. You can then subscribe to receive real-time updates for that channel group.

Was this page useful?

Last updated on