Index
Functions
Const add Message Listener
Parameters
arg: { roomId: string }
room
Id: string
callback: Function
Returns Promise<void>
Const get Message Count
getMessageCount Returns number of messages in chat room
Parameters
roomId: string
Optional time: { since: string | number | Date }
since: string | number | Date
Time to get messages since
Returns Promise<IMessageCount>
Const get Message List
getMessageList Returns array of message objects
Parameters
roomId: string
Optional opts: IMessageListOptions
Returns Promise<IMessageListPayload>
Const prepare Outgoing Chat Message
Parameters
roomId: string
preparationCallback: MessagePreparationCallback
Returns MessagePreparationCallback
Const remove Message Listener
Removes listener from chatroom
Parameters
arg: IChatRoomArgs
callback: MessageListenerCallback
Returns Promise<void>
Const send Custom Message
sendCustomMessage Send custom message to chat room.
Parameters
args: ISendCustomMessageArgs
Returns Promise<any>
Const send Message
sendMessage Send user message to chat room.
Parameters
args: ISendMessageArgs
Returns Promise<IMessagePayload>
Generated using TypeDoc
Adds a listener to a chatroom that calls passed callback function when event fires.
1.18.0