def open(self): if self.request.headers['Origin'] != 'http://%s' % ( self.request.headers['Host']): self.close() return self.uuid = str(uuid4()) syncwebsockets.add(self.uuid, self) if not LibPythonWatcher: syncwebsockets.send(self.uuid, 'StartLoop')
def on_open(self): self.uuid = str(uuid4()) syncwebsockets.add(self.uuid, self) if not LibPythonWatcher: syncwebsockets.send(self.uuid, 'StartLoop')