Skip to content

Commit eebbb83

Browse files
authored
Update README.md
1 parent 040a540 commit eebbb83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)