channelMetadata

expect abstract fun channelMetadata(id: String): ChannelMetadata
actual abstract fun channelMetadata(id: String): ChannelMetadata

Create a handle to a ChannelMetadata object that can be used to obtain a Subscription to metadata events.

The function is cheap to call, and the returned object is lightweight, as it doesn't change any client or server state. It is therefore permitted to use this method whenever a representation of a metadata channel is required.

The returned ChannelMetadata holds a reference to this PubNub instance internally.

Return

a ChannelMetadata instance representing the channel metadata with the given id

Parameters

id

the id of the channel metadata to return. See more in the documentation

actual abstract fun channelMetadata(id: String): ChannelMetadata