mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
Implement proper session tracking and resume on reconnect for the WebSocket server.
21 lines
746 B
Plaintext
21 lines
746 B
Plaintext
digraph "Client Connection Flow" {
|
|
node [shape=box];
|
|
graph [newrank=true];
|
|
|
|
start [label="Start"];
|
|
wait_hello [label="Wait for hello"];
|
|
new_session [label="New session"];
|
|
wait_ready [label="Wait for ready"];
|
|
connected [label="Connected"];
|
|
abort [label="Abort"];
|
|
lost_connection [label="Connection lost or\nunexpectedly closed\nwhile connecting" style="dotted"];
|
|
|
|
|
|
lost_connection -> start [label="Wait random delay"];
|
|
start -> wait_hello [label="Connect to /api/socket"];
|
|
wait_hello -> new_session [label="Receive hello"];
|
|
new_session -> wait_ready [label="Send register_*"];
|
|
wait_ready -> connected [label="Receive ready"];
|
|
wait_ready -> abort [label="Connection closed with 4003"];
|
|
}
|