scct federated backend server
Find a file
2024-09-01 13:48:41 +02:00
.vscode the compiler doesn't complain anymore but the server doesn't work aaa 2024-09-01 13:48:41 +02:00
migrations persisting messages as incoming to one global chat and each connection being a new user 2024-08-12 19:44:38 +02:00
model the compiler doesn't complain anymore but the server doesn't work aaa 2024-09-01 13:48:41 +02:00
server the compiler doesn't complain anymore but the server doesn't work aaa 2024-09-01 13:48:41 +02:00
.editorconfig chore: project setup 2024-06-21 18:02:06 +02:00
.gitignore persisting messages as incoming to one global chat and each connection being a new user 2024-08-12 19:44:38 +02:00
.rustfmt.toml chore: project setup 2024-06-21 18:02:06 +02:00
Cargo.lock persisting messages as incoming to one global chat and each connection being a new user 2024-08-12 19:44:38 +02:00
Cargo.toml persisting messages as incoming to one global chat and each connection being a new user 2024-08-12 19:44:38 +02:00
main.rs persisting messages as incoming to one global chat and each connection being a new user 2024-08-12 19:44:38 +02:00
README.md the compiler doesn't complain anymore but the server doesn't work aaa 2024-09-01 13:48:41 +02:00

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}}