WIP on making sockets work with subscribers filter
Implemented beforeHooks for websockets handshake