mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-30 19:09:38 +00:00
Introduced VerifiedTlsTransport
This commit is contained in:
@ -47,7 +47,11 @@ public:
|
||||
Closed = 3,
|
||||
};
|
||||
|
||||
WebSocket();
|
||||
struct Configuration {
|
||||
bool disableTlsVerification = false;
|
||||
};
|
||||
|
||||
WebSocket(std::optional<Configuration> config = nullopt);
|
||||
~WebSocket();
|
||||
|
||||
State readyState() const;
|
||||
@ -82,6 +86,7 @@ private:
|
||||
std::shared_ptr<WsTransport> mWsTransport;
|
||||
std::recursive_mutex mInitMutex;
|
||||
|
||||
const Configuration mConfig;
|
||||
string mScheme, mHost, mHostname, mService, mPath;
|
||||
std::atomic<State> mState = State::Closed;
|
||||
|
||||
|
Reference in New Issue
Block a user