async fn broadcast(&self, ids: Vec<PlayerId>, event: GameEvent) -> Result<()> {
        for id in ids {
            self.to_client(id, event.clone()).await?;
        }

        Ok(())
    }
/// Passes a game event to a group of clients represented as an array of IDs.
Passes a game event to a group of clients represented as an array of IDs.
Passes a game event to a group of clients represented as an array of IDs .
async fn broadcast(&self, ids: Vec<PlayerId>, event: GameEvent) -> Result<()> {
        for id in ids {
            self.to_client(id, event.clone()).await?;
        }
        Ok(())
    }
async fn broadcast ( & self , ids : Vec < PlayerId > , event : GameEvent ) -> Result < ( ) > { for id in ids { self . to_client ( id , event . clone ( ) ) . await ? ; } Ok ( ( ) ) }
Passes a game event to a group of clients represented as an array of IDs.
Passes a game event to a group of clients represented as an array of IDs .
&self
ids
Vec<PlayerId>
event
GameEvent
&self
ids
Vec<PlayerId>
event
GameEvent