Example #1
0
    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')
Example #2
0
    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')
Example #3
0
 def on_open(self):
     self.uuid = str(uuid4())
     syncwebsockets.add(self.uuid, self)
     if not LibPythonWatcher:
         syncwebsockets.send(self.uuid, 'StartLoop')
Example #4
0
 def on_open(self):
     self.uuid = str(uuid4())
     syncwebsockets.add(self.uuid, self)
     if not LibPythonWatcher:
         syncwebsockets.send(self.uuid, 'StartLoop')