Simple chat is a reusable chat module supporting multiple rooms and emojis.
List all created rooms.
Returns array of roomids
Get room state.
Returns room object.
roomid- The id of the room.
Create a new room.
Returns room object.
roomid- The id of the room.
Remove the given message from a room.
Returns
true
messageid- The id of the message.roomid- The id of the room.
Remove all user messages from a room.
Returns
true
userid- The id of the user.roomid- The id of the room.
Delete a created room.
Returns
true
roomid- The id of the room.
Create a new message in a room.
Returns the created message.
message- The string you would like to send.user- The user object, containing:id,avatarurl,usernameroomid- The id of the room.