File tree Expand file tree Collapse file tree 13 files changed +28
-33
lines changed
tests/functional/websockets/client Expand file tree Collapse file tree 13 files changed +28
-33
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,9 @@ namespace http { namespace client { namespace details {
37
37
class winhttp_client ;
38
38
class winrt_client ;
39
39
}}}
40
- namespace experimental { namespace websockets { namespace client { namespace details {
40
+ namespace websockets { namespace client { namespace details {
41
41
class winrt_client ;
42
- }}}}
42
+ }}}
43
43
44
44
namespace details
45
45
{
@@ -139,7 +139,7 @@ class credentials
139
139
private:
140
140
friend class http ::client::details::winhttp_client;
141
141
friend class http ::client::details::winrt_client;
142
- friend class experimental :: websockets::client::details::winrt_client;
142
+ friend class websockets ::client::details::winrt_client;
143
143
144
144
#if defined(_MS_WINDOWS)
145
145
details::plaintext_string decrypt () const
Original file line number Diff line number Diff line change @@ -53,12 +53,15 @@ namespace pplx = Concurrency;
53
53
54
54
namespace web
55
55
{
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
+
59
61
// In the past namespace was accidentally called 'web_sockets'. To avoid breaking code
60
62
// alias it. At our next major release this should be deleted.
61
63
namespace web_sockets = websockets;
64
+
62
65
namespace websockets
63
66
{
64
67
// / WebSocket client side library.
@@ -469,7 +472,7 @@ class websocket_client
469
472
std::shared_ptr<details::_websocket_client_impl> m_client;
470
473
};
471
474
472
- }}}}
475
+ }}}
473
476
474
477
#endif
475
478
#endif /* _CASA_WS_CLIENT_H */
Original file line number Diff line number Diff line change @@ -48,8 +48,6 @@ namespace pplx = Concurrency;
48
48
49
49
namespace web
50
50
{
51
- namespace experimental
52
- {
53
51
namespace websockets
54
52
{
55
53
namespace client
@@ -277,7 +275,7 @@ class websocket_incoming_message
277
275
std::shared_ptr<details::_websocket_message> _m_impl;
278
276
};
279
277
280
- }}}}
278
+ }}}
281
279
282
280
#endif
283
281
#endif /* _CASA_WS_MSG_H */
Original file line number Diff line number Diff line change @@ -83,8 +83,6 @@ using websocketpp::lib::bind;
83
83
84
84
namespace web
85
85
{
86
- namespace experimental
87
- {
88
86
namespace websockets
89
87
{
90
88
namespace client
@@ -750,6 +748,6 @@ websocket_client::websocket_client(websocket_client_config config) :
750
748
m_client (std::make_shared<details::wspp_client>(std::move(config)))
751
749
{}
752
750
753
- }}}}
751
+ }}}
754
752
755
753
#endif // !defined(WINAPI_FAMILY) || WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
Original file line number Diff line number Diff line change @@ -38,8 +38,6 @@ using namespace concurrency::streams::details;
38
38
39
39
namespace web
40
40
{
41
- namespace experimental
42
- {
43
41
namespace websockets
44
42
{
45
43
namespace client
@@ -80,6 +78,6 @@ pplx::task<std::string> websocket_incoming_message::extract_string() const
80
78
return pplx::task_from_result (std::move (m_body.collection ()));
81
79
}
82
80
83
- }}}}
81
+ }}}
84
82
85
83
#endif
Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ using namespace Concurrency::streams::details;
39
39
40
40
namespace web
41
41
{
42
- namespace experimental
43
- {
44
42
namespace websockets
45
43
{
46
44
namespace client
@@ -516,5 +514,5 @@ websocket_client::websocket_client(websocket_client_config config) :
516
514
m_client (std::make_shared<details::winrt_client>(std::move(config)))
517
515
{}
518
516
519
- }}}}
517
+ }}}
520
518
#endif /* WINAPI_FAMILY == WINAPI_FAMILY_APP */
Original file line number Diff line number Diff line change 27
27
28
28
#if defined(__cplusplus_winrt) || !defined(_M_ARM)
29
29
30
- using namespace web ::experimental:: websockets;
31
- using namespace web ::experimental:: websockets::client;
30
+ using namespace web ::websockets;
31
+ using namespace web ::websockets::client;
32
32
33
33
using namespace tests ::functional::websocket::utilities;
34
34
Original file line number Diff line number Diff line change 30
30
using namespace concurrency ::streams;
31
31
32
32
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;
35
35
36
36
using namespace tests ::functional::websocket::utilities;
37
37
Original file line number Diff line number Diff line change 29
29
30
30
using namespace concurrency ::streams;
31
31
32
- using namespace web ::experimental:: websockets;
33
- using namespace web ::experimental:: websockets::client;
32
+ using namespace web ::websockets;
33
+ using namespace web ::websockets::client;
34
34
35
35
using namespace tests ::functional::websocket::utilities;
36
36
Original file line number Diff line number Diff line change 29
29
30
30
using namespace concurrency ::streams;
31
31
32
- using namespace web ::experimental:: websockets;
33
- using namespace web ::experimental:: websockets::client;
32
+ using namespace web ::websockets;
33
+ using namespace web ::websockets::client;
34
34
35
35
using namespace tests ::functional::websocket::utilities;
36
36
You can’t perform that action at this time.
0 commit comments