diff --git a/examples/btcwalletwebsockets/main.go b/examples/btcwalletwebsockets/main.go index 0b62773b..c46e90ac 100644 --- a/examples/btcwalletwebsockets/main.go +++ b/examples/btcwalletwebsockets/main.go @@ -34,7 +34,7 @@ func main() { } connCfg := &btcrpcclient.ConnConfig{ Host: "localhost:18332", - Endpoint: "frontend", + Endpoint: "ws", User: "yourrpcuser", Pass: "yourrpcpass", Certificates: certs, diff --git a/infrastructure.go b/infrastructure.go index ee58b9d6..8075e864 100644 --- a/infrastructure.go +++ b/infrastructure.go @@ -896,7 +896,7 @@ type ConnConfig struct { Host string // Endpoint is the websocket endpoint on the RPC server. This is - // typically "ws" or "frontend". + // typically "ws". Endpoint string // User is the username to use to authenticate to the RPC server.