Added security to web sockets as well