mirror of
https://github.com/jcreek/CosmicClash.git
synced 2026-09-11 08:23:45 +00:00
fix(multiplayer): align websocket assignment ids
This commit is contained in:
@@ -131,7 +131,7 @@ func validateControlPlaneEvent(event ControlPlaneEvent) error {
|
||||
return errors.New("invalid proposal-changed event")
|
||||
}
|
||||
case "assignment_changed":
|
||||
if event.MatchID == "" || event.ServerID == "" {
|
||||
if !controlPlaneResourceIDRE.MatchString(event.MatchID) || !controlPlaneResourceIDRE.MatchString(event.ServerID) {
|
||||
return errors.New("invalid assignment-changed event")
|
||||
}
|
||||
case "error":
|
||||
|
||||
Reference in New Issue
Block a user