32 lines
641 B
Plaintext
32 lines
641 B
Plaintext
meta {
|
|
name: Game WebSocket
|
|
type: http
|
|
seq: 1
|
|
}
|
|
|
|
http {
|
|
method: GET
|
|
url: {{wsBaseUrl}}/api/board/game/{{gameId}}/ws
|
|
auth: none
|
|
}
|
|
|
|
headers {
|
|
Authorization: Bearer {{token}}
|
|
Connection: Upgrade
|
|
Upgrade: websocket
|
|
}
|
|
|
|
notes {
|
|
WebSocket connection for real-time game updates.
|
|
|
|
Local: ws://localhost:8084/api/board/game/{{gameId}}/ws
|
|
Staging: wss://st.nowchess.janis-eccarius.de/ws/api/board/game/{{gameId}}/ws
|
|
Prod: wss://nowchess.janis-eccarius.de/ws/api/board/game/{{gameId}}/ws
|
|
|
|
Message Types:
|
|
- CONNECTED: Connection established
|
|
- MOVE: Player move
|
|
- GAME_STATE: Full state update
|
|
- ERROR: Error message
|
|
}
|