944 B
944 B
online
- Incari accounts and the online service, client side (ADR 0058; the wire format is
docs/online-protocol.md, which the service implements; change both together). - No game, LWJGL or TeaVM types (
BoundaryTest)::client'sincari.client.onlinefeeds it the world and draws its screens. - Compiled into the browser build: no reflection, no blocking, nothing TeaVM's class library lacks. Gson's tree API only.
OnlineServiceis game-thread only. The platform's network callbacks are queued and run intick(); proof of work runs on the background executor it's given and reports back the same way.- Never log or keep a password; never log a token or a recovery code. Nothing in the game may wait on the service: every call returns at once and answers through a callback on a later tick.
- Test:
./gradlew :online:check. The vectors insrc/test/resources/incari/online/vectors.jsonare shared with the backend.