I'm trying to run a WebServer and socket server in Python. I have the code for each that works on it's own, but I can't get them going together and they each start on a blocking call - can someone point out my ?newbie? mistake(s) below?
start_server = websockets.serve(hello, "", 8765)
print("one")
import WWW_Server
#The imported file has the following lines:
##from waitress import serve
##
##def srvThread(SrvPort=5000):
## flaskThread()
## serve(app, host='0.0.0.0', port=SrvPort)
##
##threading.Thread(target = srvThread(2000)).start()
##print("hello") <<<< Why don't I see this printed out?
print("two") # <<<< Why don't I see this printed out?
asyncio.get_event_loop().run_until_complete(start_server)
asyncio.get_event_loop().run_forever()
print("three")