Identifier for a direct (one-to-one) channel.
const directId = new DirectChannelIdentifier('user-123');
The type of the channel
The unique ID of the channel
Checks whether this identifier refers to the same channel as another.
const id1 = new DirectChannelIdentifier('user-123');const id2 = new DirectChannelIdentifier('user-123');console.log(id1.isEqualTo(id2)); // true
The other channel identifier to compare with
true if both identifiers refer to the same channel
true
The target user's ID
Identifier for a direct (one-to-one) channel.