backend/README.md

800 B

scct backend

tldr:

  • no capnproto
  • no http framework
  • C2S is a stream
  • S2S is packet based broadcast
  • probably use tungstenite for web clients
  • can we have better streams for mobile/desktop?
  • sea_orm and sqlx are huge but ehh db flexibility is nice feature
  • i have no clue honestly
  • super cool chat thing yayyyyyyyy

Example serverbound messages

Request chat history of chat room

The uuid is the chat room id

{"RequestChatHistory":"00000000-0000-0000-0000-000000000000"}

Send message to a chat room

{"Message":{"id":"bef168ac-cee2-4319-9020-ef14a0778338","user_id":"67662e56-751a-4124-b611-0b54e53bd983","chat_id":"00000000-0000-0000-0000-000000000000","content":"hello world!","created":"2024-09-01T11:29:35.777275126Z","updated":null}}