Skip to content

Commit e321a1c

Browse files
committed
Moving websocket_client out of the experimental namespace.
1 parent c7774b7 commit e321a1c

File tree

13 files changed

+28
-33
lines changed

13 files changed

+28
-33
lines changed

Release/include/cpprest/web_utilities.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ namespace http { namespace client { namespace details {
3737
class winhttp_client;
3838
class winrt_client;
3939
}}}
40-
namespace experimental { namespace websockets { namespace client { namespace details {
40+
namespace websockets { namespace client { namespace details {
4141
class winrt_client;
42-
}}}}
42+
}}}
4343

4444
namespace details
4545
{
@@ -139,7 +139,7 @@ class credentials
139139
private:
140140
friend class http::client::details::winhttp_client;
141141
friend class http::client::details::winrt_client;
142-
friend class experimental::websockets::client::details::winrt_client;
142+
friend class websockets::client::details::winrt_client;
143143

144144
#if defined(_MS_WINDOWS)
145145
details::plaintext_string decrypt() const

Release/include/cpprest/ws_client.h

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,15 @@ namespace pplx = Concurrency;
5353

5454
namespace web
5555
{
56-
/// WebSocket client is currently in beta.
57-
namespace experimental
58-
{
56+
57+
// For backwards compatibility for when in the experimental namespace.
58+
// At next major release this should be deleted.
59+
namespace experimental = web;
60+
5961
// In the past namespace was accidentally called 'web_sockets'. To avoid breaking code
6062
// alias it. At our next major release this should be deleted.
6163
namespace web_sockets = websockets;
64+
6265
namespace websockets
6366
{
6467
/// WebSocket client side library.
@@ -469,7 +472,7 @@ class websocket_client
469472
std::shared_ptr<details::_websocket_client_impl> m_client;
470473
};
471474

472-
}}}}
475+
}}}
473476

474477
#endif
475478
#endif /* _CASA_WS_CLIENT_H */

Release/include/cpprest/ws_msg.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ namespace pplx = Concurrency;
4848

4949
namespace web
5050
{
51-
namespace experimental
52-
{
5351
namespace websockets
5452
{
5553
namespace client
@@ -277,7 +275,7 @@ class websocket_incoming_message
277275
std::shared_ptr<details::_websocket_message> _m_impl;
278276
};
279277

280-
}}}}
278+
}}}
281279

282280
#endif
283281
#endif /* _CASA_WS_MSG_H */

Release/src/websockets/client/ws_client.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ using websocketpp::lib::bind;
8383

8484
namespace web
8585
{
86-
namespace experimental
87-
{
8886
namespace websockets
8987
{
9088
namespace client
@@ -750,6 +748,6 @@ websocket_client::websocket_client(websocket_client_config config) :
750748
m_client(std::make_shared<details::wspp_client>(std::move(config)))
751749
{}
752750

753-
}}}}
751+
}}}
754752

755753
#endif // !defined(WINAPI_FAMILY) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)

Release/src/websockets/client/ws_msg.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ using namespace concurrency::streams::details;
3838

3939
namespace web
4040
{
41-
namespace experimental
42-
{
4341
namespace websockets
4442
{
4543
namespace client
@@ -80,6 +78,6 @@ pplx::task<std::string> websocket_incoming_message::extract_string() const
8078
return pplx::task_from_result(std::move(m_body.collection()));
8179
}
8280

83-
}}}}
81+
}}}
8482

8583
#endif

Release/src/websockets/client/ws_winrt.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ using namespace Concurrency::streams::details;
3939

4040
namespace web
4141
{
42-
namespace experimental
43-
{
4442
namespace websockets
4543
{
4644
namespace client
@@ -516,5 +514,5 @@ websocket_client::websocket_client(websocket_client_config config) :
516514
m_client(std::make_shared<details::winrt_client>(std::move(config)))
517515
{}
518516

519-
}}}}
517+
}}}
520518
#endif /* WINAPI_FAMILY == WINAPI_FAMILY_APP */

Release/tests/functional/websockets/client/authentication_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727

2828
#if defined(__cplusplus_winrt) || !defined(_M_ARM)
2929

30-
using namespace web::experimental::websockets;
31-
using namespace web::experimental::websockets::client;
30+
using namespace web::websockets;
31+
using namespace web::websockets::client;
3232

3333
using namespace tests::functional::websocket::utilities;
3434

Release/tests/functional/websockets/client/client_construction.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
using namespace concurrency::streams;
3131

3232
using namespace web;
33-
using namespace web::experimental::websockets;
34-
using namespace web::experimental::websockets::client;
33+
using namespace web::websockets;
34+
using namespace web::websockets::client;
3535

3636
using namespace tests::functional::websocket::utilities;
3737

Release/tests/functional/websockets/client/close_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
using namespace concurrency::streams;
3131

32-
using namespace web::experimental::websockets;
33-
using namespace web::experimental::websockets::client;
32+
using namespace web::websockets;
33+
using namespace web::websockets::client;
3434

3535
using namespace tests::functional::websocket::utilities;
3636

Release/tests/functional/websockets/client/error_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929

3030
using namespace concurrency::streams;
3131

32-
using namespace web::experimental::websockets;
33-
using namespace web::experimental::websockets::client;
32+
using namespace web::websockets;
33+
using namespace web::websockets::client;
3434

3535
using namespace tests::functional::websocket::utilities;
3636

0 commit comments

Comments
 (0)