From c4df60a89a6639332c22fdb682819fd7a247ad99 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Wed, 6 Nov 2024 20:17:13 -0500 Subject: [PATCH] Change ws route --- cmd/calls/main.go | 2 +- pkg/nexus/websocket.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/calls/main.go b/cmd/calls/main.go index c81258f..9be38b3 100644 --- a/cmd/calls/main.go +++ b/cmd/calls/main.go @@ -87,7 +87,7 @@ func main() { log.Fatal(err) } - u := url.URL{Scheme: "ws" + secureSuffix(), Host: *addr, Path: "/ws"} + u := url.URL{Scheme: "ws" + secureSuffix(), Host: *addr, Path: "/api/ws"} log.Printf("connecting to %s", u.String()) dialer := websocket.Dialer{ diff --git a/pkg/nexus/websocket.go b/pkg/nexus/websocket.go index e69c8a2..886d051 100644 --- a/pkg/nexus/websocket.go +++ b/pkg/nexus/websocket.go @@ -183,5 +183,5 @@ func (conn *wsConn) writeToClient(w io.WriteCloser, msg ToClient) { } func (n *wsManager) PrivateRoutes(r chi.Router) { - r.HandleFunc("/ws", n.serveWS) + r.HandleFunc("/api/ws", n.serveWS) }