From 216c15547df35dff8844c864fd4f17d755b13d29 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Mon, 1 Jun 2020 17:47:53 -0700 Subject: [PATCH] Use relative path to websocket --- webroot/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/js/main.js b/webroot/js/main.js index 9e8fd549a..0ccbefd4b 100644 --- a/webroot/js/main.js +++ b/webroot/js/main.js @@ -4,7 +4,7 @@ define( "MessageList" ], function(MessageList) { - var ws = new WebSocket("ws://localhost:8080/entry"); + var ws = new WebSocket("ws://" + location.host + "/entry"); var list = new MessageList(ws); ko.applyBindings(list); }