예제 #1
0
파일: __init__.py 프로젝트: hekevintran/wdb
    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')
예제 #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')
예제 #3
0
 def on_open(self):
     self.uuid = str(uuid4())
     syncwebsockets.add(self.uuid, self)
     if not LibPythonWatcher:
         syncwebsockets.send(self.uuid, 'StartLoop')
예제 #4
0
파일: __init__.py 프로젝트: Kozea/wdb
 def on_open(self):
     self.uuid = str(uuid4())
     syncwebsockets.add(self.uuid, self)
     if not LibPythonWatcher:
         syncwebsockets.send(self.uuid, 'StartLoop')