refactor, add websocket listener to game server.