Test:Mermaid: Difference between revisions

From Resonite Wiki
Created page with "{{#mermaid:sequenceDiagram participant Client participant API participant Relay participant Session Host autonumber Client->>API: What relays are available? (api.resonite.com/networknodes) destroy API API-->>Client: Here's a list of relays Client-->Client: Select the best relay based on ping and other stats Client->>Relay: Connect to best relay activate Relay activate Client activate Session Host Relay->>Session H..."
 
No edit summary
Line 1: Line 1:
<languages />
{{#mermaid:sequenceDiagram
{{#mermaid:sequenceDiagram
participant Client
participant C as <translate>Client</translate>
participant API
participant A as <translate>API</translate>
participant Relay
participant R as <translate>Relay</translate>
participant Session Host
participant H as <translate>Session Host</translate>


     autonumber
     autonumber


     Client->>API: What relays are available? (api.resonite.com/networknodes)
     C->>A: What relays are available? (api.resonite.com/networknodes)


     destroy API
     destroy A
     API-->>Client: Here's a list of relays
     A-->>C: Here's a list of relays
      
      
     Client-->Client: Select the best relay based on ping and other stats
     C-->C: Select the best relay based on ping and other stats


      
      
     Client->>Relay: Connect to best relay
     C->>R: Connect to best relay
     activate Relay
     activate Relay
     activate Client
     activate Client
     activate Session Host
     activate Session Host
     Relay->>Session Host: Connect to session host
     R->>H: Connect to session host


     Note over Client,Session Host: LNL messages relayed asycronously
     Note over C,H: LNL messages relayed asycronously
     autonumber off
     autonumber off
     Session Host->>Relay: LNL traffic
     H->>R: LNL traffic
     Client->>Relay: LNL traffic
     C->>R: LNL traffic
      
      
     deactivate Client
     deactivate Client

Revision as of 04:46, 16 February 2024