(self, event: Dict[str, Any])
Receives a message from the room group and sends it back to the websocket.
Receives a message from the room group and sends it back to the websocket.
Receives a message from the room group and sends it back to the websocket .
def state_update(self, event: Dict[str, Any]):
        """Receives a message from the room group and sends it back to the websocket."""
        self.send(text_data=json.dumps(event["state"]))
def state_update ( self , event : Dict [ str , Any ] ) : self . send ( text_data = json . dumps ( event [ "state" ] ) )