Skip to content

tacyarg/service-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simplechat

Simple chat is a reusable chat module supporting multiple rooms and emojis.

Actions

listRooms

List all created rooms.

Returns array of roomids

getRoom

Get room state.

Returns room object.

  • roomid - The id of the room.

createRoom

Create a new room.

Returns room object.

  • roomid - The id of the room.

removeMessage

Remove the given message from a room.

Returns true

  • messageid - The id of the message.
  • roomid - The id of the room.

removeUserMessages

Remove all user messages from a room.

Returns true

  • userid - The id of the user.
  • roomid - The id of the room.

removeRoom

Delete a created room.

Returns true

  • roomid - The id of the room.

speak

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, username
  • roomid - The id of the room.

About

basic chat supporting multiple rooms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published