-
Notifications
You must be signed in to change notification settings - Fork 0
Client Server API
RustWizard edited this page Oct 9, 2021
·
4 revisions
- Client loaded.
- Client do StateRequest to the server for getting current user's state.
- All followed client's requests executed based on the user's activity.
- Requests goes from the client to server in order of their appearances.
- Every followed request goes to the queue and waiting response from the previous request, before sending.
- Client listen events from the server, accepting events and passed to the queue for interpretation.
- Interpretation of the server events goes when request queue is empty and response for the last request was received.
- When connection to the server is lost, then client must relogin to the server to receive a new session.
- Server arch is amd64, so byte order is little-endian.
- Requests, Responses and Events serialized to JSON and sends via HTTP.