File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ void run() {
7979 auto config = oatpp::mbedtls::Config::createDefaultClientConfigShared ();
8080
8181 /* secure connection provider for stream.binance.com */
82- auto connectionProvider = oatpp::mbedtls::client::ConnectionProvider::createShared (config, {" stream.binance.com" , 9443 /* port */ });
82+ oatpp::network::Address address (" stream.binance.com" , 9443 /* port */ );
83+ auto connectionProvider = oatpp::mbedtls::client::ConnectionProvider::createShared (config, address);
8384
8485 /* websocket connector */
8586 auto connector = oatpp::websocket::Connector::createShared (connectionProvider);
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ void run() {
2929
3030 auto config = oatpp::mbedtls::Config::createDefaultClientConfigShared ();
3131
32- auto connectionProvider = oatpp::mbedtls::client::ConnectionProvider::createShared (config, {" echo.websocket.org" , 443 });
32+ oatpp::network::Address address (" echo.websocket.org" , 443 );
33+ auto connectionProvider = oatpp::mbedtls::client::ConnectionProvider::createShared (config, address);
3334
3435 auto connector = oatpp::websocket::Connector::createShared (connectionProvider);
3536
You can’t perform that action at this time.
0 commit comments