diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-05-22 16:56:32 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2023-06-01 11:29:44 +0300 |
commit | dd4f6ff9eae62310dab578f55e116a42abc787ea (patch) | |
tree | cc4b99fca96aefc0eba2d22f025e52386cccc3f1 | |
parent | 3389c7fbbaf65708c3ad73158b2da17020b122f3 (diff) | |
download | libmicrohttpd-dd4f6ff9eae62310dab578f55e116a42abc787ea.tar.gz libmicrohttpd-dd4f6ff9eae62310dab578f55e116a42abc787ea.zip |
websocket_threaded_example: fixed wrong commented-out code
-rw-r--r-- | src/examples/websocket_threaded_example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/websocket_threaded_example.c b/src/examples/websocket_threaded_example.c index e73b1414..af036d24 100644 --- a/src/examples/websocket_threaded_example.c +++ b/src/examples/websocket_threaded_example.c | |||
@@ -38,7 +38,7 @@ | |||
38 | "<title>WebSocket chat</title>\n" \ | 38 | "<title>WebSocket chat</title>\n" \ |
39 | "<script>\n" \ | 39 | "<script>\n" \ |
40 | "document.addEventListener('DOMContentLoaded', function() {\n" \ | 40 | "document.addEventListener('DOMContentLoaded', function() {\n" \ |
41 | " const ws = new WebSocket('ws:/" "/ ' + window.location.host);\n" /* \ | 41 | " const ws = new WebSocket('ws:/" "/ ' + window.location.host);\n" \ |
42 | " const btn = document.getElementById('send');\n" \ | 42 | " const btn = document.getElementById('send');\n" \ |
43 | " const msg = document.getElementById('msg');\n" \ | 43 | " const msg = document.getElementById('msg');\n" \ |
44 | " const log = document.getElementById('log');\n" \ | 44 | " const log = document.getElementById('log');\n" \ |
@@ -71,7 +71,7 @@ | |||
71 | "<input type='button' id='send' value='Send' /><br /><br />\n" \ | 71 | "<input type='button' id='send' value='Send' /><br /><br />\n" \ |
72 | "<textarea id='log' rows='20' cols='28'></textarea>\n" \ | 72 | "<textarea id='log' rows='20' cols='28'></textarea>\n" \ |
73 | "</body>\n" \ | 73 | "</body>\n" \ |
74 | "</html>" */ | 74 | "</html>" |
75 | #define BAD_REQUEST_PAGE \ | 75 | #define BAD_REQUEST_PAGE \ |
76 | "<html>\n" \ | 76 | "<html>\n" \ |
77 | "<head>\n" \ | 77 | "<head>\n" \ |