Added support for secure WebSockets