Przeglądaj źródła

websocket_threaded_example: fixed wrong commented-out code

Evgeny Grin (Karlson2k) 2 lat temu
rodzic
commit
dd4f6ff9ea
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/examples/websocket_threaded_example.c

+ 2 - 2
src/examples/websocket_threaded_example.c

@@ -38,7 +38,7 @@
   "<title>WebSocket chat</title>\n"                                           \
   "<script>\n"                                                                \
   "document.addEventListener('DOMContentLoaded', function() {\n"              \
-  "  const ws = new WebSocket('ws:/" "/ ' + window.location.host);\n"     /*  \
+  "  const ws = new WebSocket('ws:/" "/ ' + window.location.host);\n"         \
   "  const btn = document.getElementById('send');\n"                          \
   "  const msg = document.getElementById('msg');\n"                           \
   "  const log = document.getElementById('log');\n"                           \
@@ -71,7 +71,7 @@
   "<input type='button' id='send' value='Send' /><br /><br />\n"              \
   "<textarea id='log' rows='20' cols='28'></textarea>\n"                      \
   "</body>\n"                                                                 \
-  "</html>"                                                               */
+  "</html>"
 #define BAD_REQUEST_PAGE                                                      \
   "<html>\n"                                                                  \
   "<head>\n"                                                                  \