added secure websocket V2 implementation