File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ void run() {
79
79
auto config = oatpp::mbedtls::Config::createDefaultClientConfigShared ();
80
80
81
81
/* 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);
83
84
84
85
/* websocket connector */
85
86
auto connector = oatpp::websocket::Connector::createShared (connectionProvider);
Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ void run() {
29
29
30
30
auto config = oatpp::mbedtls::Config::createDefaultClientConfigShared ();
31
31
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);
33
34
34
35
auto connector = oatpp::websocket::Connector::createShared (connectionProvider);
35
36
You can’t perform that action at this time.
0 commit comments