From 28c0a3c8c738a47dbb8fb8871742046f7dcdc105 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Thu, 12 Jun 2014 13:00:42 -0500 Subject: [PATCH] Modify doco and example for btcwallet ws endpoint. --- examples/btcwalletwebsockets/main.go | 2 +- infrastructure.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.