Update readme
This commit is contained in:
34
README.md
34
README.md
@ -94,30 +94,26 @@ WS --> Vis: WebSockets
|
|||||||
### WebSockets
|
### WebSockets
|
||||||
|
|
||||||
```plantuml
|
```plantuml
|
||||||
participant Game as "FairHopper\nGame Server"
|
box "FairHopper Game Server" #lightcyan
|
||||||
|
participant Game as "Game Engine"
|
||||||
participant WS as "WS Server"
|
participant WS as "WS Server"
|
||||||
participant Client1 as "Visualisation\nClient 1"
|
endbox
|
||||||
participant Client2 as "Visualisation\nClient 2"
|
participant Client1 as "Visualisation\nClient 1"
|
||||||
|
participant Client2 as "Visualisation\nClient 2"
|
||||||
|
|
||||||
Game ->o WS: Server Connect
|
Game ->o WS: Send initial state
|
||||||
activate WS #coral
|
|
||||||
WS -> Game: Get game state
|
|
||||||
activate Game #yellow
|
|
||||||
Game -> WS: Game state
|
|
||||||
deactivate
|
|
||||||
deactivate
|
|
||||||
|
|
||||||
Client1 ->o WS: Client Connect
|
Client1 ->o WS: Client connect
|
||||||
activate WS #coral
|
activate WS #coral
|
||||||
WS -> Client1: Game state
|
WS -> Client1: Game state
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
Client2 ->o WS: Client Connect
|
Client2 ->o WS: Client connect
|
||||||
activate WS #coral
|
activate WS #coral
|
||||||
WS -> Client2: Game state
|
WS -> Client2: Game state
|
||||||
deactivate
|
deactivate
|
||||||
|
|
||||||
loop #lightyellow On game state change
|
loop #lightyellow On game state change
|
||||||
Game ->o WS: Game state
|
Game ->o WS: Game state
|
||||||
activate WS #coral
|
activate WS #coral
|
||||||
WS o-> Client1: Game state
|
WS o-> Client1: Game state
|
||||||
|
|||||||
Reference in New Issue
Block a user