No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{#mermaid:sequenceDiagram | {{#mermaid:sequenceDiagram | ||
participant | participant Client | ||
participant | participant API | ||
participant | 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 Host: Connect to session h~ost | |||
Note over Client,Session Host: LNL messages relayed asycronously | |||
autonumber off | |||
Session Host->>Relay: LNL traffic | |||
Client->>Relay: LNL traffic | |||
deactivate Client | |||
deactivate Relay | |||
deactivate Session Host | |||
}} | }} |