Info

The parts

flowchart TB
  App["Polis app"]
  Browser["Browser<br/>console"]
  Host["Session host<br/>app or headless server"]
  Relay["PurrLay relay"]
  CI["TeamCity CI"]
  Hub["Service Hub<br/>API + console"]
  LiveKit["LiveKit<br/>streaming, data, RPCs"]
  GlitchTip["GlitchTip<br/>crash reports"]
  Store[("PostgreSQL<br/>+ files")]

  App <==>|"PurrNet game sync"| Host
  App <==>|"behind NAT"| Relay <==> Host
  App -->|"API"| Hub
  Browser --> Hub
  Host -->|"login, lobby"| Hub
  CI -->|"uploads"| Hub
  Hub <-->|"rooms, webhooks"| LiveKit
  Hub --- Store
  Hub -->|"reads"| GlitchTip
  App <==>|"LiveKit sync"| LiveKit
  Browser <-.->|"streams"| LiveKit
  App -.->|"crashes"| GlitchTip

What happens when a player joins

  1. The app starts from its root scene. The App Loader loads the managers and services, see App Loader
  2. The Service Hub SDK checks the stored sign-in in the background. Without one it signs in anonymously (Anonymous Login By Default in ServiceHubSettings, on by default), unless the user logged out
  3. Release content asks Releases for the app's channel and downloads newer content if there is any, see Release Content
  4. The server list fills from the lobby, the local network, a typed address or a join code
  5. PurrNet connects to the host directly over UDP, or through the relay