Request | Description | Response | ||
Code | Body | Code | Body | |
1003 | group name; channel name; login; hash of password (sha256); | Authorization | 10 | − |
301 | current hash of password (sha256); new hash of password (sha256); | Password update | 10 | − |
6001 | length of message; | Creating a message | 10 | UUID |
6002 | length of message; UUID; | Creating a replication message | 10 | − |
6003 | length of message; | Creating a signal | 10 | − |
part of message; | Sending of part of message | 10 | − |
Schematically sending a message is shown in the image:
As with the consumer, each message is split into 4 kilobytes and then sent to the server. If something went wrong, then after sending part of the message, an error is returned and further sending of the message is interrupted.