Mercurial
diff mrjunejune/src/talk/index.html @ 137:095f7dc5bfce
[MrJuneJune] Fix the js file to hit correct endpoints.
| author | June Park <parkjune1995@gmail.com> |
|---|---|
| date | Fri, 09 Jan 2026 11:33:35 -0800 |
| parents | 75c144fd6964 |
| children | 1f023b8bf9c3 |
line wrap: on
line diff
--- a/mrjunejune/src/talk/index.html Fri Jan 09 11:21:54 2026 -0800 +++ b/mrjunejune/src/talk/index.html Fri Jan 09 11:33:35 2026 -0800 @@ -25,6 +25,7 @@ <script> const host = window.location.hostname; const port = '6969'; + const url = host === "mrjunejune.com" ? `wss://${host}/echo` : `ws://${host}:${port}/echo`; const ws = new WebSocket(`ws://${host}:${port}/echo`); const messagesDiv = document.getElementById('messages');