Index
Functions
Const add Message Listener
Parameters
arg: { roomId: string }
room
Id: string
callback: Function
Returns Promise<void>
Const delete Message
Parameters
args: IDeleteMessageArgs
Returns Promise<void>
Const get Message Count
getMessageCount Returns number of messages in chat room
Parameters
roomId: string
Optional opts: IMessageCountOptions
Returns Promise<IMessageCount>
Const get Message List
getMessageList Returns array of message objects
Parameters
roomId: string
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<ICustomMessageResponsePayload>
Const send Message
sendMessage Send user message to chat room.
Parameters
args: ISendMessageArgs
Returns Promise<IMessageResponsePayload>
Const upload Image
Parameters
args: IUploadImageArgs
Returns Promise<IUploadImageResponse>
Generated using TypeDoc
Adds a listener to a chatroom that calls passed callback function when event fires.
1.18.0