Connect to /websocket
Upon connection, the client will be sent the universe
Send a POST request to /api
- Header:
Content-Type: application/json
- Set the message as request body
Success Response:
{ "ok": true }
Error Response:
{
"ok": false,
"error": string
}
See the TypeScript definitions under shared/types/api.d.ts