From 2a7d725a093c8d316ccee658f3d9514968821bae Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Mon, 3 Feb 2014 10:46:03 -0600 Subject: [PATCH] Move websocket endpoint to /ws. This commit moves the connection endpoint for websockets to /ws instead of /wallet. First, the former is more standard, and second the latter presumes how the websocket is to be used. Closes #80. --- rpcserver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index 622588bb..23b00258 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -174,7 +174,7 @@ func (s *rpcServer) Start() { jsonRPCRead(w, r, s) }) - rpcServeMux.HandleFunc("/wallet", func(w http.ResponseWriter, r *http.Request) { + rpcServeMux.HandleFunc("/ws", func(w http.ResponseWriter, r *http.Request) { authenticated, err := s.checkAuth(r, false) if err != nil { http.Error(w, "401 Unauthorized.", http.StatusUnauthorized)