refactor(socket) getExec, getSpawn