Commit f00ff6a4 authored by Michel Roelofs's avatar Michel Roelofs
Browse files

Parameterize websocket URI

parent 5d3e9ba2
......@@ -169,7 +169,12 @@ eval(load("js/dt_websocket.js"));
eval(load("js/log.js"));
eval(load("js/dt_status.js"));
new dt_websocket("ws://"+ window.location.host +"/dt");
if (window.location.protocol == "https:") {
websocketprotocol="wss://"
} else {
websocketprotocol="ws://"
}
new dt_websocket(websocketprotocol + window.location.host + "/" + window.location.pathname + "/dt");
/*
'constants'
......
......@@ -83,7 +83,12 @@ eval(load("js/trace.js"));
eval(load("js/utils.js"));
eval(load("js/status.js"));
new dt_websocket("ws://"+ window.location.host +"/dt");
if (window.location.protocol == "https:") {
websocketprotocol="wss://"
} else {
websocketprotocol="ws://"
}
new dt_websocket(websocketprotocol + window.location.host + "/" + window.location.pathname + "/dt");
function one(val)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment