Browse Source

Added example line in test

Paul-Louis Ageneau 5 years ago
parent
commit
bc6710c4a1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      test/websocket.cpp

+ 4 - 0
test/websocket.cpp

@@ -38,6 +38,10 @@ void test_websocket() {
 
 
 	auto ws = std::make_shared<WebSocket>();
 	auto ws = std::make_shared<WebSocket>();
 
 
+	// Certificate verification can be disabled
+	// auto ws = std::make_shared<WebSocket>(WebSocket::Configuration{.disableTlsVerification =
+	// true});
+
 	ws->onOpen([wws = make_weak_ptr(ws), &myMessage]() {
 	ws->onOpen([wws = make_weak_ptr(ws), &myMessage]() {
 		auto ws = wws.lock();
 		auto ws = wws.lock();
 		if (!ws)
 		if (!ws)