Events
Events
member.joined
- member.joined(
member)
A new member joined the chat.
Parameters
member.left
- member.left(
member)
A member left the chat.
Parameters
member.updated
- member.updated(
member)
A member updated its state.
Parameters
message
- message(
message)
A new message has been received.
Parameters
Type Aliases
ChatMemberEntity
An object representing a Chat Member with only the state properties of ChatMember.
Properties
Readonlychannel:string
The channel of this member.
Readonlyid:string
The id of this member.
Readonlystate:Record<any, any>
The state of this member.
ChatMessageEntity
An object representing a Chat Message with only the state properties of ChatMessage.
Properties
Readonlycontent:any
The content of this message.
Readonlyid:string
The id. of this message
Readonlymember:ChatMember
The member which sent this message.
Readonlymeta?:any
Any metadata associated with this message.
ReadonlypublishedAt:Date
The date and time at which this message was published.