Use relative path to websocket
This commit is contained in:
parent
d0ec846b30
commit
216c15547d
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user