break: remove /ws
from websocket path
This commit is contained in:
parent
256837c130
commit
e8e65c4f3a
2 changed files with 3 additions and 3 deletions
|
@ -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://<listenAddress>:<listenPort>/ws'")
|
||||
fmt.Println("\nPoint your client to 'ws://<listenAddress>:<listenPort>'")
|
||||
}
|
||||
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue