added ssl implementation for webSocket