diff --git a/html/demo.js b/html/demo.js
index d49163f..a21160d 100644
--- a/html/demo.js
+++ b/html/demo.js
@@ -116,6 +116,10 @@ function updateCurrentUsers() {
}
updateCurrentUsersText(x_audio_metadata.n_connected_users);
+
+ if (x_audio_metadata.instance_name) {
+ window.instanceName.innerText = x_audio_metadata.instance_name;
+ }
}
};
xhr.send();
diff --git a/html/index.html b/html/index.html
index 594bae0..19cbaff 100644
--- a/html/index.html
+++ b/html/index.html
@@ -489,7 +489,7 @@
-
Bucket Brigade
+
Bucket Brigade
Recent Recordings
diff --git a/server.py b/server.py
index 6c4ec84..5a50fb2 100755
--- a/server.py
+++ b/server.py
@@ -921,10 +921,13 @@ def handle_post(in_json, in_data) -> Tuple[Any, str]:
action = query_params.get("action", None)
if action == "status":
- return np.zeros(0, np.uint8), json.dumps({
+ rsp = {
"n_connected_users": len(active_users()),
"max_users": MAX_USERS,
- })
+ }
+ if "instance_name" in secrets:
+ rsp["instance_name"] = secrets["instance_name"]
+ return np.zeros(0, np.uint8), json.dumps(rsp)
userid = query_params.get("userid", None)
if userid is not None: