added auto port finding to both web apps

This commit is contained in:
UpstreamData
2022-04-14 09:43:43 -06:00
parent 3670a02aec
commit 3604957c83
3 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
<script>
if (!window.WebSocket) alert("WebSocket not supported by this browser");
var ws = new WebSocket("ws://{{request.url.hostname}}:10000/dashboard/ws");
var ws = new WebSocket("ws://{{request.url.hostname}}:{{request.url.port}}/dashboard/ws");
let all_data = []
let all_labels = []
ws.onmessage = function(event) {