Refactor socket workflow