aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Twan L <twanluttik@gmail.com> 2023-09-13 22:00:05 -0700
committerGravatar GitHub <noreply@github.com> 2023-09-13 22:00:05 -0700
commit0a5e44cd3919cefcb48c67a0aa5d0ac3c0c21dc3 (patch)
tree8aef8c3d1a3e6814317a92026c6138de5c2adeda
parent49a44eef0f3b6ef51ad46392be47e1cfbaf7435b (diff)
downloadbun-0a5e44cd3919cefcb48c67a0aa5d0ac3c0c21dc3.tar.gz
bun-0a5e44cd3919cefcb48c67a0aa5d0ac3c0c21dc3.tar.zst
bun-0a5e44cd3919cefcb48c67a0aa5d0ac3c0c21dc3.zip
Update simple.md (#4881)
I have removed the / before ${server.port} because it its incorrect and I replaced the localhost to ${server.hostname} Co-authored-by: Colin McDonnell <colinmcd94@gmail.com>
-rw-r--r--docs/guides/websocket/simple.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/guides/websocket/simple.md b/docs/guides/websocket/simple.md
index a84a3c8ee..e1d95ce36 100644
--- a/docs/guides/websocket/simple.md
+++ b/docs/guides/websocket/simple.md
@@ -29,5 +29,5 @@ const server = Bun.serve<{ authToken: string }>({
},
});
-console.log(`Listening on localhost:${server.port}`);
+console.log(`Listening on ${server.hostname}:${server.port}`);
```