"""Bind together threaded IO handling server and message queue."""
def __init__(self, queue, port, *args, **kwargs):
- super().__init__(('localhost', port), IO_Handler, *args, **kwargs)
+ super().__init__(('0.0.0.0', port), IO_Handler, *args, **kwargs)
self.queue_out = queue
self.daemon_threads = True # Else, server's threads have daemon=False.
self.clients = {}
savefile = sys.argv[1]
game = Game(savefile)
game.io.start_loop()
-game.io.start_server(8000, PlomWebSocketServer)
-#game.io.start_server(8001, PlomTCPServer)
+game.io.start_server(8001, PlomWebSocketServer)
+game.io.start_server(5000, PlomTCPServer)