Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Latest commit

 

History

History
68 lines (54 loc) · 1.97 KB

messageProtocol.md

File metadata and controls

68 lines (54 loc) · 1.97 KB

Message Protocol

Message schema:

Field name: Message length Message ID Token Payload Check Sum
Length: 4 bytes 1 byte 40 bytes ? bytes 4 bytes

Message IDs:

User management:

  1. register user
  2. user registered confirmation (from server)
  3. login user
  4. user login confirmation (from server)
  5. logout user
  6. user logout confirmation (from server)

Friend mechanism:

  1. send friend proposition
  2. friend proposition send confirmation (from server)
  3. new friend proposition info (from server)
  4. friend proposition accept
  5. friend proposition accept confirmation (from server)
  6. new friend proposition accept info (from server)
  7. friend proposition reject
  8. friend proposition reject confirmation (from server)
  9. new friend proposition reject info (from server)

Channel mechanism:

  1. create channel
  2. create channel confirmation (from server)
  3. send invitation to channel
  4. send invitation to channel confirmation (from server)
  5. new invitation to channel info (from server)
  6. invitation to channel accept
  7. invitation to channel accept confirmation (from server)
  8. new invitation to channel accept info (from server)
  9. invitation to channel reject
  10. invitation to channel reject confirmation (from server)
  11. new invitation to channel reject info (from server)
  12. leave channel
  13. leave channel confirmation (from server)

Messages & Reactions:

  1. send message
  2. message send confirmation (from server)
  3. check new message
  4. new message response (from server)
  5. new message info (from server)
  6. request message(s)
  7. message(s) response (from server)
  8. isActive message
  9. add reaction
  10. reaction confirmation (from server)
  11. request message reaction(s)
  12. reaction(s) response (from server)
  13. new reaction info (from server)