Index
Functions
add Message Listener
Parameters
arg: { roomId: string }
room
Id: string
callback: Function
Returns Promise<void>
delete Message
Parameters
args: IDeleteMessageArgs
Returns Promise<void>
get Message Count
getMessageCount Returns number of messages in chat room
Parameters
roomId: string
Optional opts: IMessageCountOptions
Returns Promise<IMessageCount>
get Message List
getMessageList Returns array of message objects
Parameters
roomId: string
opts: IMessageListOptions = {}
Returns Promise<IMessageListPayload>
prepare Outgoing Chat Message
Parameters
roomId: string
preparationCallback: MessagePreparationCallback
Returns MessagePreparationCallback
remove Message Listener
Removes listener from chatroom
Parameters
arg: IChatRoomArgs
callback: MessageListenerCallback
Returns Promise<void>
send Custom Message
sendCustomMessage Send custom message to chat room.
Parameters
args: ISendCustomMessageArgs
Returns Promise<ICustomMessageResponsePayload>
send Message
sendMessage Send user message to chat room.
Parameters
args: ISendMessageArgs
Returns Promise<IMessageResponsePayload>
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