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

So this removes the session hook requirements from the sockets hook. Helpful for those of us using JWTs.
* space after if.
* (My preference) add curly braces, always.