refactor(socket) getSpawn
chore(socket) add "\n"