def on_connect(self, sid, environ): self.byid_disk_map = get_byid_name_map() self.switch = True self.spawn(self.send_top_disks, sid)
def recv_connect(self): self.byid_disk_map = get_byid_name_map() self.switch = True self.spawn(self.send_top_disks)
def on_connect(self, sid, environ): self.byid_disk_map = get_byid_name_map() self.switch = True self.spawn(self.send_top_disks, sid)
def recv_connect(self): self.byid_disk_map = get_byid_name_map() self.switch = True self.spawn(self.send_top_disks)