added support for web sockets