Update readme

This commit is contained in:
Eden Kirin
2023-03-26 14:50:32 +02:00
parent 4831f1e393
commit 6731f751f4

View File

@ -94,25 +94,21 @@ WS --> Vis: WebSockets
### WebSockets
```plantuml
participant Game as "FairHopper\nGame Server"
box "FairHopper Game Server" #lightcyan
participant Game as "Game Engine"
participant WS as "WS Server"
endbox
participant Client1 as "Visualisation\nClient 1"
participant Client2 as "Visualisation\nClient 2"
Game ->o WS: Server Connect
activate WS #coral
WS -> Game: Get game state
activate Game #yellow
Game -> WS: Game state
deactivate
deactivate
Game ->o WS: Send initial state
Client1 ->o WS: Client Connect
Client1 ->o WS: Client connect
activate WS #coral
WS -> Client1: Game state
deactivate
Client2 ->o WS: Client Connect
Client2 ->o WS: Client connect
activate WS #coral
WS -> Client2: Game state
deactivate