Unverified Commit c9244c58 authored by Michel Roelofs's avatar Michel Roelofs Committed by Tammo Jan Dijkema
Browse files

Parameterize websocket URI

parent 81e172b4
......@@ -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)
......
Markdown is supported
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