aboutsummaryrefslogtreecommitdiffstats
path: root/examples/websocket/templates/ws.html
diff options
context:
space:
mode:
authorJaeseung Ha <ipknhama@gmail.com>2017-09-18 00:43:42 +0900
committerGitHub <noreply@github.com>2017-09-18 00:43:42 +0900
commit08acc7c0bedc24bf5b8c6cc01f1701b0d45e141e (patch)
tree77aa4aa0f2cbfd139dc3194a3cf113ed2100454f /examples/websocket/templates/ws.html
parente40605da59e368be524dee0e9e9d41ef05149473 (diff)
parent194a9ef6812e3d5476419e33be2756ab69fc0696 (diff)
downloadcrow-08acc7c0bedc24bf5b8c6cc01f1701b0d45e141e.tar.gz
crow-08acc7c0bedc24bf5b8c6cc01f1701b0d45e141e.zip
Merge branch 'master' into master
Diffstat (limited to 'examples/websocket/templates/ws.html')
-rw-r--r--examples/websocket/templates/ws.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/websocket/templates/ws.html b/examples/websocket/templates/ws.html
index f6e7281..2d38fdf 100644
--- a/examples/websocket/templates/ws.html
+++ b/examples/websocket/templates/ws.html
@@ -11,7 +11,8 @@
<textarea id="log" cols=100 rows=50>
</textarea>
<script>
-var sock = new WebSocket("ws://i.ipkn.me:40080/ws");
+var sock = new WebSocket("ws://{{servername}}:40080/ws");
+
sock.onopen = ()=>{
console.log('open')
}