Esempio n. 1
0
 def _handle_client_update(self, command: common.Command):
     clients_attributes_update, _ = common.decode_json(command.data, 0)
     update_named_attributes(self.clients_attributes, clients_attributes_update)
Esempio n. 2
0
 def _handle_room_update(self, command: common.Command):
     rooms_attributes_update, _ = common.decode_json(command.data, 0)
     update_named_attributes(self.rooms_attributes, rooms_attributes_update)