added auth query param

main
alex 2022-12-23 12:41:04 +01:00
parent 4b000b30be
commit 3066f2d84e
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ window.onload = () => {
} }
connectWS() connectWS()
connectSSE() //connectSSE()
} }
function connectSSE() { function connectSSE() {
@ -57,7 +57,7 @@ function connectSSE() {
} }
function connectWS() { function connectWS() {
ws = new WebSocket(wsAddress + wsPort) ws = new WebSocket(wsAddress + wsPort + "/?auth=sMURqnQt-88Ko-SaWu-2GLr-K2iQECXDyONm")
ws.onopen = () => { ws.onopen = () => {
console.info("ws open", document.getElementById("userid")) console.info("ws open", document.getElementById("userid"))