channel

fun channel(channelType: String, channelId: String): ChannelState

Returns the ChannelState for the given channel.

A malformed cid yields a fresh, non-cached state so callers still get a non-null object, but the registry won't track it and the state will never receive updates.

Return

ChannelState object.

Parameters

channelType

The channel type. ie messaging.

channelId

The channel id. ie 123.