Esempio n. 1
0
 def __init__(self, component):
     self.host = os.environ.get("TEP_WAMP_HOST", "127.0.0.1")
     self.port = int(os.environ.get("TEP_WAMP_PORT", 8080))
     Client.__init__(self, realm="tuxeatpi", url="ws://{}:{}".format(self.host, self.port))
     self.component = component
     self.logger = logging.getLogger(name="tep").getChild(component.name).getChild('wampclient')
     self._must_run = True
     self.topics = {}
     self.rpc_funcs = {}
     self._get_topics()
Esempio n. 2
0
    def __init__(self,  *args, **kwargs):

        ExecutorBase.__init__(self, *args, **kwargs)
        Client.__init__(self,url=self.url)