def initializeServerAndCommunicationProtocol(options): HubsInspector.inspectImplementedHubs() # do not call this line in executable if not utils.areWeFrozen(): HubsInspector.constructJSFile(path="libs/WSCommunication/Clients") server = make_server(options.host, options.port, server_class=WSGIServer, handler_class=WebSocketWSGIRequestHandler, app=WebSocketWSGIApplication(handler_cls=ConnectionHandler)) server.initialize_websockets_manager() return server
def getBasePath(): if utils.areWeFrozen(): return sys._MEIPASS else: return Web2BoardPaths.getMainPath()