Properties:
Name | Type | Description |
---|---|---|
channel |
Channel | The Channel the remote Client is a Member of |
identity |
String | The identity of the remote Client |
isTyping |
Boolean | Whether or not this Member is currently typing |
lastConsumedMessageIndex |
Number | Latest consumed Message index by this Member. Note that just retrieving messages on a client endpoint does not mean that messages are consumed/read, please consider reading about Consumption Horizon feature to find out how to mark messages as consumed. |
lastConsumptionTimestamp |
Date | Date when Member has updated his consumption horizon |
sid |
String | The server-assigned unique identifier for the Member |
Fires:
Methods
-
getUser()
-
Gets User for this member and subscribes to it.
Returns:
- Type
- Promise.<User>
-
getUserDescriptor()
-
Gets User Descriptor for this member.
Returns:
- Type
- Promise.<UserDescriptor>
-
remove()
-
Remove Member from the Channel.
Returns:
- Type
- Promise.<void>
Type Definitions
-
UpdateReason
-
The update reason for
updated
event emitted on MemberType:
- 'roleSid' | 'lastConsumedMessageIndex' | 'lastConsumptionTimestamp'
Events
-
typingEnded
-
Fired when Member ended to type.
Type: Member
-
typingStarted
-
Fired when Member started to type.
Type: Member
-
updated
-
Fired when Member's fields has been updated.
Type: Object
Properties:
Name Type Description member
Member Updated Member updateReasons
Array.<Member#UpdateReason> Array of Member's updated event reasons