From 094a1294008a193babbef101468d596e81d07dba Mon Sep 17 00:00:00 2001
From: unknown <1371033826@qq.com>
Date: Thu, 29 May 2025 19:02:23 +0800
Subject: [PATCH] fix-observe-port
---
ejs/observe.ejs | 2 ++
js/observe.js | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/ejs/observe.ejs b/ejs/observe.ejs
index 3dfe88f..7427be3 100644
--- a/ejs/observe.ejs
+++ b/ejs/observe.ejs
@@ -30,6 +30,8 @@
+
+
diff --git a/js/observe.js b/js/observe.js
index ef5c160..ee0232a 100644
--- a/js/observe.js
+++ b/js/observe.js
@@ -47,7 +47,7 @@ $(function() {
randomClientID = 'OBGuest_' + Math.random().toString(16).substr(2, 8)
globalUserName = userName
globalProjectName = projectName
- client = mqtt.connect((location.protocol == 'https:' ? 'wss://' : 'ws://') + window.location.host + (location.protocol == 'https:' ? ':8084' : ':8083') + '/mqtt', {
+ client = mqtt.connect((location.protocol == 'https:' ? 'wss://' : 'ws://') + window.location.host + ":" + (location.protocol == 'https:' ? MIXIO_WSS_PORT : MIXIO_WS_PORT) + '/mqtt', {
'clientId': randomClientID,
'username': userName,
'password': projectPass