From 3a00563b6a6444cc3c27d6a887f4eebdf5aa04a0 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Mon, 18 Nov 2024 17:43:49 +0100 Subject: [PATCH] break: remove `/ws` from websocket path --- cmd/server/main.go | 4 ++-- index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/server/main.go b/cmd/server/main.go index 25fc443..d8eb8f6 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -28,7 +28,7 @@ func Start() { flag.Usage = func() { fmt.Fprintf(flag.CommandLine.Output(), "Usage of %s:\n", "GoTomato") flag.PrintDefaults() - fmt.Println("\nPoint your client to 'ws://:/ws'") + fmt.Println("\nPoint your client to 'ws://:'") } flag.Parse() @@ -52,7 +52,7 @@ func Start() { // start connection handler and broadcast r := http.NewServeMux() - r.HandleFunc("/ws", websocket.HandleConnection) + r.HandleFunc("/", websocket.HandleConnection) go websocket.SendPermanentBroadCastMessage() helper.Logger.Info("GoTomato started", "version", metadata.GoTomatoVersion) diff --git a/index.html b/index.html index a2c345e..eca9464 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,7 @@