Change ws route
This commit is contained in:
parent
c1a258f63c
commit
c4df60a89a
2 changed files with 2 additions and 2 deletions
|
@ -87,7 +87,7 @@ func main() {
|
||||||
log.Fatal(err)
|
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())
|
log.Printf("connecting to %s", u.String())
|
||||||
|
|
||||||
dialer := websocket.Dialer{
|
dialer := websocket.Dialer{
|
||||||
|
|
|
@ -183,5 +183,5 @@ func (conn *wsConn) writeToClient(w io.WriteCloser, msg ToClient) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (n *wsManager) PrivateRoutes(r chi.Router) {
|
func (n *wsManager) PrivateRoutes(r chi.Router) {
|
||||||
r.HandleFunc("/ws", n.serveWS)
|
r.HandleFunc("/api/ws", n.serveWS)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue