Sockets hook for the Sails framework.