No edit summary |
Marked this version for translation |
||
Line 2: | Line 2: | ||
{{#mermaid:sequenceDiagram | {{#mermaid:sequenceDiagram | ||
participant C as <translate>Client</translate> | participant C as <translate><!--T:1--> Client</translate> | ||
participant A as <translate>API</translate> | participant A as <translate><!--T:2--> API</translate> | ||
participant R as <translate>Relay</translate> | participant R as <translate><!--T:3--> Relay</translate> | ||
participant H as <translate>Session Host</translate> | participant H as <translate><!--T:4--> Session Host</translate> | ||
autonumber | autonumber | ||
C->>A: <translate>What relays are available? (api.resonite.com/networknodes)</translate> | C->>A: <translate><!--T:5--> What relays are available? (api.resonite.com/networknodes)</translate> | ||
destroy A | destroy A | ||
A-->>C: <translate>Here's a list of relays</translate> | A-->>C: <translate><!--T:6--> Here's a list of relays</translate> | ||
C-->C: <translate>Select the best relay based on ping and other stats</translate> | C-->C: <translate><!--T:7--> Select the best relay based on ping and other stats</translate> | ||
C->>R: <translate>Connect to best relay</translate> | C->>R: <translate><!--T:8--> Connect to best relay</translate> | ||
activate R | activate R | ||
activate C | activate C | ||
activate H | activate H | ||
R->>H: <translate>Connect to session host</translate> | R->>H: <translate><!--T:9--> Connect to session host</translate> | ||
Note over C,H: <translate>LNL messages relayed asynchronously</translate> | Note over C,H: <translate><!--T:10--> LNL messages relayed asynchronously</translate> | ||
autonumber off | autonumber off | ||
H->>R: <translate>LNL traffic</translate> | H->>R: <translate><!--T:11--> LNL traffic</translate> | ||
C->>R: <translate>LNL traffic</translate> | C->>R: <translate><!--T:12--> LNL traffic</translate> | ||
deactivate C | deactivate C |