def on_ws_connected(self): try: self.ID = "%032x" % (random.getrandbits(128)) from platformcode.controllers.html import html self.controller = html(self, self.ID) self.server.fnc_info() except: logger.error(traceback.format_exc())
def handleConnected(self): try: from platformcode.controllers.html import html self.controller = html(self) platformtools.controllers[self.ID] = self.controller self.server.fnc_info() except: logger.error(traceback.format_exc())
def handleConnected(self): try: self.ID = "%032x" % (random.getrandbits(128)) from platformcode.controllers.html import html self.controller = html(self, self.ID) self.server.fnc_info() except: logger.error(traceback.format_exc()) self.close()