added support for websocket protocols