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..."
 
fix formatting
 
(156 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages />
{{#mermaid:sequenceDiagram
{{#mermaid:sequenceDiagram
participant Client
participant C as <translate nowrap><!--T:1--> Client</translate>
participant API
participant A as <translate nowrap><!--T:2--> API</translate>
participant Relay
participant R as <translate nowrap><!--T:3--> Relay</translate>
participant Session Host
participant H as <translate nowrap><!--T:4--> Session Host</translate>


     autonumber
     autonumber


     Client->>API: What relays are available? (api.resonite.com/networknodes)
     C->>A: <translate nowrap><!--T:5--> What relays are available?</translate> (api.resonite.com/networknodes)


     destroy API
     destroy A
     API-->>Client: Here's a list of relays
     A-->>C: <translate nowrap><!--T:6--> Here's a list of relays</translate>
      
      
     Client-->Client: Select the best relay based on ping and other stats
     C-->C: <translate nowrap><!--T:7--> Select the best relay based on ping and other stats</translate>


      
      
     Client->>Relay: Connect to best relay
     C->>R: <translate nowrap><!--T:8--> Connect to best relay</translate>
     activate Relay
     activate R
     activate Client
     activate C
     activate Session Host
     activate H
     Relay->>Session Host: Connect to session host
     R->>H: <translate nowrap><!--T:9--> Connect to session host</translate>


     Note over Client,Session Host: LNL messages relayed asycronously
     Note over C,H: <translate nowrap><!--T:10--> LNL messages relayed asynchronously</translate>
     autonumber off
     autonumber off
     Session Host->>Relay: LNL traffic
     H->>R: <translate nowrap><!--T:11--> LNL traffic</translate>
     Client->>Relay: LNL traffic
     C->>R: <translate nowrap><!--T:12--> LNL traffic</translate>
   
    deactivate C
    deactivate R
    deactivate H
}}
 
{{#mermaid:flowchart BT
    subgraph outside
       
        InvalidSpace["Invalid, not linked"]
        RootSlot
    end
    subgraph RootSlot [RootSlot]
        World["Space #34;World#34;"]
        color["World/Color1"] --> World
       
       
        UserRootSlot
       
    end
    subgraph UserRootSlot
        UserSpace["Space #34;User#34;"]
        AvatarRootSlot
        V["User/Voice"] --> UserSpace
        V2["User/Color"] --> UserSpace
    end
   
    subgraph AvatarRootSlot
        avatar["User/Avatar"]
        avatarworld["World/Avatar.U-myid"]
        hips["HipsSlot"] --> AvatarSpace
        invalid["None/float"]
       
        AvatarSpace["Space #34;Avatar#34;"]
       
        Flux2_node0(["DynamicVariableInput#60;ColorX#62;#12;#34;World/Color1#34;"])
        Flux2_node0 -. points to .-> color
    end
   
 
   
    avatarworld --> World
    avatar --> UserSpace
    subgraph Flux1
        Flux1_node0(["User Root Slot"]) -. automatically points to .-> UserRootSlot
        Flux1_node1(["Read #34;User/Avatar#34;"]) --> Flux1_node0
        Flux1_node1 -. points to .-> AvatarRootSlot
        Flux1_node2(["Read Variable #34;Avatar/Hips#34;"]) --> Flux1_node1
        Flux1_node2 -. points to .-> hips
    end
    invalid --> InvalidSpace
   
   
   
      
      
    deactivate Client
}}
    deactivate Relay
 
    deactivate Session Host
 
{{#mermaid:flowchart LR
  a --> b & c--> d
}}
}}

Latest revision as of 21:53, 31 March 2024