(port)
Handles running the websocket thread
Handles running the websocket thread
Handles running the websocket thread
def _run_server(port):
    """Handles running the websocket thread"""
    asyncio.set_event_loop(asyncio.new_event_loop())
    asyncio.get_event_loop().run_until_complete(
        websockets.serve(ws_handler, 'localhost', port))
    asyncio.get_event_loop().run_forever()
def _run_server ( port ) : asyncio . set_event_loop ( asyncio . new_event_loop ( ) ) asyncio . get_event_loop ( ) . run_until_complete ( websockets . serve ( ws_handler , 'localhost' , port ) ) asyncio . get_event_loop ( ) . run_forever ( )