refactor(socket) getSpawn