Adding support for web sockets authentication