googleforgames / global-multiplayer-demo

This multiplayer demo is a cloud first implementation of a global scale, realtime multiplayer game utilising dedicated game servers, utilising both Google Cloud's products and open source gaming solutions.
Apache License 2.0
117 stars 16 forks source link

Wire the frontend to Open Match, change /play to POST with latencies #142

Closed zmerlynn closed 1 year ago

zmerlynn commented 1 year ago
type PlayRequest struct {
    PingByRegion map[string]int32 `json:"pingByRegion"` // region -> ping time in milliseconds
}

Tested with the super advanced:

for i in {1..4}; do 
  curl -H "Authorization: Bearer ${TOKEN}" -H "Content-Type: application/json" --data '{"pingByRegion":{"us-central1":50, "europe-west1":100, "asia-east1":150}}' http://35.238.207.159.sslip.io/play &
done
markmandel commented 1 year ago

FYI @kennycoder that we made this change.