Repository navigation
Application Messages between Client and Server
In this page we will describe all the messages that the client send to the Server and viceversa.
When the client connects to the server, it sends a message indicating its running version to track the number of clients for each version connected simultaneously.
- Desktop App:
{"type":"connection", "version": "desktop"}π₯οΈ - Mobile App:
{"type":"connection", "version": "app"}π±
{"type":"login", "user":"userName", "password":"userPassword"} πͺͺ
When the client wants to display a message on the screen, it sends the following JSON, replacing "value" with the actual message:
{"type": "show", "value": "Hello World", "user": "userName"} π¬
{'type':'image', 'value': 'Base64image'} πΌ
{'type': 'usersList'} π¨βπ©βπ§βπ¦β
{"type": "conexion"} π
{"type":"login", "value":"true/false"} β
/β
{'type': 'usersOnline', 'value': [{'id':{'plataforma': 'app', 'usuario': 'Ronald'}]π¨βπ©βπ§βπ¦
{'type': 'connection', 'value': totalConnectionsNumber} β
{'type': 'disconnection', 'value': totalConnectionsNumber} β
{'type': 'sendMessage', 'value': userName} π¨
Note: The program is under development, and its features may change in future updates. π§