diff options
Diffstat (limited to 'doc/examples/websocket.c')
-rw-r--r-- | doc/examples/websocket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/websocket.c b/doc/examples/websocket.c index 5cdf0423..77bc55cd 100644 --- a/doc/examples/websocket.c +++ b/doc/examples/websocket.c | |||
@@ -28,7 +28,7 @@ | |||
28 | "<script>\n" \ | 28 | "<script>\n" \ |
29 | "\n" \ | 29 | "\n" \ |
30 | "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \ | 30 | "let url = 'ws' + (window.location.protocol === 'https:' ? 's' : '')" \ |
31 | " + '://' +\n" \ | 31 | " + ':/" "/' +\n" \ |
32 | " window.location.host + '/chat';\n" \ | 32 | " window.location.host + '/chat';\n" \ |
33 | "let socket = null;\n" \ | 33 | "let socket = null;\n" \ |
34 | "\n" \ | 34 | "\n" \ |
@@ -38,7 +38,7 @@ | |||
38 | " document.write('The websocket connection has been " \ | 38 | " document.write('The websocket connection has been " \ |
39 | "established.<br>');\n" \ | 39 | "established.<br>');\n" \ |
40 | "\n" \ | 40 | "\n" \ |
41 | " // Send some text\n" \ | 41 | " /" "/ Send some text\n" \ |
42 | " socket.send('Hello from JavaScript!');\n" \ | 42 | " socket.send('Hello from JavaScript!');\n" \ |
43 | " }\n" \ | 43 | " }\n" \ |
44 | "\n" \ | 44 | "\n" \ |