Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Use relative path to websocket

Gabe Kangas216c15547df3
diff --git a/webroot/js/main.js b/webroot/js/main.js
index 9e8fd549a1..0ccbefd4b3 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);
}