Merge pull request #278 from hhgyu/add-support-protocols

support Subprotocols
This commit is contained in:
Paul-Louis Ageneau
2020-11-28 13:18:06 +01:00
committed by GitHub
4 changed files with 30 additions and 5 deletions

View File

@ -49,6 +49,7 @@ public:
struct Configuration {
bool disableTlsVerification = false; // if true, don't verify the TLS certificate
std::optional<std::vector<string>> protocols = std::nullopt;
};
WebSocket(std::optional<Configuration> config = nullopt);