Move websocket endpoint to /ws.

This commit is contained in:
Josh Rickmar 2014-02-03 11:50:11 -05:00
parent b90e7aae82
commit 45e0a3fcb9

View file

@ -450,7 +450,7 @@ func (s *server) checkAuth(r *http.Request) error {
// BtcdWS opens a websocket connection to a btcd instance.
func BtcdWS(certificates []byte) (*websocket.Conn, error) {
url := fmt.Sprintf("wss://%s/wallet", cfg.Connect)
url := fmt.Sprintf("wss://%s/ws", cfg.Connect)
config, err := websocket.NewConfig(url, "https://localhost/")
if err != nil {
return nil, err