Removes the socket hook's dependency upon the session hook.
Revert "Removes the socket hook's dependency upon the session hook."

This reverts commit cfcf9d89076e2919912e015dcbf27ba16f250ea0.