Simplify socket sessions.