Files
2026-01-09 18:09:09 +01:00

34 lines
880 B
Markdown

# axiom-server
Self host your axiom community server with customizable plugins
# Protocol
1. When the client is running in the background or windowed, it's connected to the [Axiom Cloud server](#axiom-cloud)
## Handshake
Client -> Cloud: `{ GenerateServerAuth: {} }`
Cloud -> Cloud: `{ ServerAuth: { auth: <Client-Temp-Auth> } }`
Client -> Server: Connect
Client -> Server: `{ auth: <Client-Temp-Auth> }`
Server -> Cloud: `GET /validate-auth?auth=<Client-Temp-Auth>`
Cloud -> Server: `{ 200 OK { username: <Username>, name: <Name>, id: <User-Id> } }`
## Sending a message
Client -> Server: `{ SendMessage: { content: <Message> } }`
Server -> Cloud: `POST /message { content: <Message>, author: <User-Id> }`
Cloud -> Client(s): `{ Message: { content: <Message>, author: <User-Id> } }`
# Axiom Cloud
The axiom cloud server is the main auth and notification handler.