My_Teams
|
show help
set the user_name used by client
disconnect the client from the server
get the list of all users that exist on the domain
get information about a user
send a message to a user
list all messages exchange with an user
subscribe to the event of a team and its sub directories (enable reception of all events from a team)
list all subscribed teams or list all users subscribed to a team
unsubscribe from a team
use specify a context team/channel/thread
create a new team when the context is not defined (/use)
create a new channel when team_uuid is defined (/use “team_uuid”)
create a new thread when team_uuid and channel_uuid are defined (/use “team_uuid” “channel_uuid”)
create a new reply when team_uuid, channel_uuid and thread_uuid are defined (/use “team_uuid” “channel_uuid” “thread_uuid”)
any
any
any
team_uuid
channel_uuid
thread_uuid
user_uuid
any
any
any
any
user_uuid|user_name
user_uuid|user_name
user_uuid|user_name|user_status
team_uuid|team_name|team_description
team_uuid|team_name|team_description
channel_uuid|channel_name|channel_description
channel_uuid|channel_name|channel_description
thread_uuid|user_uuid|time|thread_title|thread_body
thread_uuid|user_uuid|time|thread_title|thread_body
team_uuid|thread_uuid|user_uuid|time|comment_body
team_uuid|thread_uuid|user_uuid|time|comment_body
any
user_uuid|team_uuid
user_uuid|team_uuid|team_name|team_description
team_uuid|user_uuid|user_name|user_status
user_uuid|team_uuid
user_uuid|user_name|user_status
user_uuid|user_name|message_body
user_uuid|user_name|message_body
team_uuid|team_name|team_description
channel_uuid|channel_name|channel_description
thread_uuid|user_uuid|time|thread_title|thread_body
thread_uuid|user_uuid|time|comment_body
team_uuid|team_name|team_description
channel_uuid|channel_name|channel_description
thread_uuid|user_uuid|time|thread_title|thread_body
user_uuid|user_name|user_status
The communication protocol we designed to facilitate data exchanges between the server and the CLI interface operates in three distinct parts to be read on the socket. First, we have an integer corresponding to the code of the called event, followed by a second integer representing the size of the string to be read in the third part. The third part thus contains the string itself. This three-part process effectively structures the data exchanged between the server and the CLI interface, facilitating understanding and data processing on the server side.
The string sent contains different information depending on the code of the event. Indeed, each event code is associated with a specific action to be performed on the server side. Thus, the string sent may contain information such as the user's name, the group's name, the message to be sent, etc., depending on the called event. This approach makes communication between the server and the CLI interface more flexible and better suited to the various needs of the application.