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