File tree 12 files changed +24
-27
lines changed
12 files changed +24
-27
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ add_library(${project_name}-lib
21
21
22
22
## link libs
23
23
24
- find_package (oatpp 1.2.5 REQUIRED)
25
- find_package (oatpp-websocket 1.2.5 REQUIRED)
24
+ find_package (oatpp 1.3.0 REQUIRED)
25
+ find_package (oatpp-websocket 1.3.0 REQUIRED)
26
26
27
27
target_link_libraries (${project_name} -lib
28
28
PUBLIC oatpp::oatpp
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ void run() {
14
14
OATPP_COMPONENT (std::shared_ptr<oatpp::web::server::HttpRouter>, router);
15
15
16
16
/* Create RoomsController and add all of its endpoints to router */
17
- auto myController = std::make_shared<RoomsController>();
18
- myController->addEndpointsToRouter (router);
17
+ router->addController (std::make_shared<RoomsController>());
19
18
20
19
/* Get connection handler component */
21
20
OATPP_COMPONENT (std::shared_ptr<oatpp::network::ConnectionHandler>, connectionHandler, " http" );
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ add_library(${project_name}-lib
17
17
18
18
## link libs
19
19
20
- find_package (oatpp 1.2.5 REQUIRED)
21
- find_package (oatpp-websocket 1.2.5 REQUIRED)
20
+ find_package (oatpp 1.3.0 REQUIRED)
21
+ find_package (oatpp-websocket 1.3.0 REQUIRED)
22
22
23
23
target_link_libraries (${project_name} -lib
24
24
PUBLIC oatpp::oatpp
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ void run() {
14
14
OATPP_COMPONENT (std::shared_ptr<oatpp::web::server::HttpRouter>, router);
15
15
16
16
/* Create MyController and add all of its endpoints to router */
17
- auto myController = std::make_shared<MyController>();
18
- myController->addEndpointsToRouter (router);
17
+ router->addController (std::make_shared<MyController>());
19
18
20
19
/* Get connection handler component */
21
20
OATPP_COMPONENT (std::shared_ptr<oatpp::network::ConnectionHandler>, connectionHandler, " http" );
Original file line number Diff line number Diff line change 1
1
jobs :
2
- - job : ubuntu_16_04
3
- displayName : ' Build - Ubuntu 16 .04'
2
+ - job : ubuntu_20_04
3
+ displayName : ' Build - Ubuntu 20 .04'
4
4
continueOnError : false
5
5
pool :
6
- vmImage : ' Ubuntu 16 .04'
6
+ vmImage : ' ubuntu-20 .04'
7
7
workspace :
8
8
clean : all
9
9
steps :
Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../cmake/module") # <--
25
25
26
26
find_package (mbedtls 2.16.0 REQUIRED)
27
27
28
- find_package (oatpp 1.2.5 REQUIRED)
29
- find_package (oatpp-websocket 1.2.5 REQUIRED)
30
- find_package (oatpp-mbedtls 1.2.5 REQUIRED)
28
+ find_package (oatpp 1.3.0 REQUIRED)
29
+ find_package (oatpp-websocket 1.3.0 REQUIRED)
30
+ find_package (oatpp-mbedtls 1.3.0 REQUIRED)
31
31
32
32
target_link_libraries (${project_name} -lib
33
33
## oatpp
Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../cmake/module") # <--
20
20
21
21
find_package (mbedtls 2.16.0 REQUIRED)
22
22
23
- find_package (oatpp 1.2.5 REQUIRED)
24
- find_package (oatpp-websocket 1.2.5 REQUIRED)
25
- find_package (oatpp-mbedtls 1.2.5 REQUIRED)
23
+ find_package (oatpp 1.3.0 REQUIRED)
24
+ find_package (oatpp-websocket 1.3.0 REQUIRED)
25
+ find_package (oatpp-mbedtls 1.3.0 REQUIRED)
26
26
27
27
target_link_libraries (${project_name} -lib
28
28
## oatpp
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ void run() {
29
29
30
30
auto config = oatpp::mbedtls::Config::createDefaultClientConfigShared ();
31
31
32
- oatpp::network::Address address (" echo.websocket.org " , 443 );
32
+ oatpp::network::Address address (" demo.piesocket.com " , 443 );
33
33
auto connectionProvider = oatpp::mbedtls::client::ConnectionProvider::createShared (config, address);
34
34
35
35
auto connector = oatpp::websocket::Connector::createShared (connectionProvider);
36
36
37
- auto connection = connector->connect (" / " );
37
+ auto connection = connector->connect (" v3/channel_1?api_key=oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm¬ify_self " );
38
38
39
39
OATPP_LOGI (TAG, " Connected" );
40
40
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ add_library(${project_name}-lib
15
15
16
16
## link libs
17
17
18
- find_package (oatpp 1.2.5 REQUIRED)
19
- find_package (oatpp-websocket 1.2.5 REQUIRED)
18
+ find_package (oatpp 1.3.0 REQUIRED)
19
+ find_package (oatpp-websocket 1.3.0 REQUIRED)
20
20
21
21
target_link_libraries (${project_name} -lib
22
22
PUBLIC oatpp::oatpp
Original file line number Diff line number Diff line change @@ -26,11 +26,11 @@ void run() {
26
26
27
27
OATPP_LOGI (TAG, " Application Started" );
28
28
29
- auto connectionProvider = oatpp::network::tcp::client::ConnectionProvider::createShared ({" echo.websocket.org " , 80 });
29
+ auto connectionProvider = oatpp::network::tcp::client::ConnectionProvider::createShared ({" demo.piesocket.com " , 80 });
30
30
31
31
auto connector = oatpp::websocket::Connector::createShared (connectionProvider);
32
32
33
- auto connection = connector->connect (" / " );
33
+ auto connection = connector->connect (" v3/channel_1?api_key=oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm¬ify_self " );
34
34
35
35
OATPP_LOGI (TAG, " Connected" );
36
36
Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ add_library(${project_name}-lib
17
17
18
18
## link libs
19
19
20
- find_package (oatpp 1.2.5 REQUIRED)
21
- find_package (oatpp-websocket 1.2.5 REQUIRED)
20
+ find_package (oatpp 1.3.0 REQUIRED)
21
+ find_package (oatpp-websocket 1.3.0 REQUIRED)
22
22
23
23
target_link_libraries (${project_name} -lib
24
24
PUBLIC oatpp::oatpp
Original file line number Diff line number Diff line change @@ -14,8 +14,7 @@ void run() {
14
14
OATPP_COMPONENT (std::shared_ptr<oatpp::web::server::HttpRouter>, router);
15
15
16
16
/* Create MyController and add all of its endpoints to router */
17
- auto myController = std::make_shared<MyController>();
18
- myController->addEndpointsToRouter (router);
17
+ router->addController (std::make_shared<MyController>());
19
18
20
19
/* Get connection handler component */
21
20
OATPP_COMPONENT (std::shared_ptr<oatpp::network::ConnectionHandler>, connectionHandler, " http" );
You can’t perform that action at this time.
0 commit comments