From 3d1c7afdd729609e28a4a5b758d3bb3bc7659832 Mon Sep 17 00:00:00 2001 From: Sisi Date: Thu, 2 Apr 2026 14:49:44 +0200 Subject: [PATCH] fix owner change typo in main, create new client --- machine-client/index.html | 522 ++++++++++++++++++++------------------ main.go | 2 +- 2 files changed, 274 insertions(+), 250 deletions(-) diff --git a/machine-client/index.html b/machine-client/index.html index e265772..a221b74 100644 --- a/machine-client/index.html +++ b/machine-client/index.html @@ -2,289 +2,313 @@ - WS Client + go-socket debug +

go-socket debug

-
-

WebSocket Client

- -
- - - - -
- -
- - - - - -
- -
- - - - - - - -
- -
- - - - - -
- -
- - - - - - - - - -
- -
-
Not connected
+
+ +
-
-

Connected as

-
-
- - -
- +
+ Response Log + +
+
+ +
+ + + + + + + + + + + +
+ +
+
+
diff --git a/main.go b/main.go index 86bf360..ec0656e 100644 --- a/main.go +++ b/main.go @@ -23,7 +23,7 @@ func main() { http.HandleFunc("/mod/group/addclients", withCORS(HttpHandleGroupAddClient)) http.HandleFunc("/mod/group/removeclients", withCORS(HttpHandleGroupRemoveClient)) http.HandleFunc("/mod/group/color", withCORS(HttpHandleGroupChangeColor)) - http.HandleFunc("/mod/group/color", withCORS(HttpHandleGroupChangeOwner)) + http.HandleFunc("/mod/group/owner", withCORS(HttpHandleGroupChangeOwner)) http.HandleFunc("/new/message", withCORS(HttpHandleNewMessage)) http.HandleFunc("/get/groups", withCORS(HttpHandleGroupsGetWithoutMembers)) http.HandleFunc("/get/group/members", withCORS(HttpHandleGroupMembersGet))