diff --git a/examples/example-simple-chat/src/index.ts b/examples/example-simple-chat/src/index.ts index 35d3990..6f86d27 100644 --- a/examples/example-simple-chat/src/index.ts +++ b/examples/example-simple-chat/src/index.ts @@ -94,7 +94,7 @@ function bootChat(ds: Ref) { function setWsurl() { const wsurl = document.getElementById('wsurl')! as HTMLInputElement; if (wsurl.value === '') { - wsurl.value = `ws://${document.location.host}:9001/`; + wsurl.value = `ws://${document.location.hostname}:9001/`; } }