File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ https://github.com/smasherprog/websocket_lite/blob/master/Test/main.cpp
2929
3030```
3131 SL::WS_LITE::PortNumber port(3001);
32- SL::WS_LITE::WSContext ctx (SL::WS_LITE::ThreadCount(1));
33- auto listener = ctx .CreateListener(port);
32+ SL::WS_LITE::WSContext listenerctx (SL::WS_LITE::ThreadCount(1));
33+ auto listener = listenerctx .CreateListener(port);
3434 listener.onHttpUpgrade([&](const SL::WS_LITE::WSocket& socket) {
3535
3636 });
@@ -42,8 +42,8 @@ https://github.com/smasherprog/websocket_lite/blob/master/Test/main.cpp
4242 });
4343
4444 listener.startlistening();
45-
46- auto client = ctx .CreateClient();
45+ SL::WS_LITE::WSContext clientctx(SL::WS_LITE::ThreadCount(1));
46+ auto client = clientctx .CreateClient();
4747 client.onHttpUpgrade([&](const SL::WS_LITE::WSocket& socket) {
4848
4949 });
You can’t perform that action at this time.
0 commit comments