From 797acbe911ab8fa6d70bb8053ad29497d1fc0302 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Tue, 8 Aug 2017 17:33:17 -0400 Subject: [PATCH] ws: small comment --- rpc/lib/client/ws_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpc/lib/client/ws_client.go b/rpc/lib/client/ws_client.go index fac32d85..031c4651 100644 --- a/rpc/lib/client/ws_client.go +++ b/rpc/lib/client/ws_client.go @@ -69,7 +69,7 @@ type WSClient struct { // NewWSClient returns a new client. See the commentary on the func(*WSClient) // functions for a detailed description of how to configure ping period and -// pong wait time. +// pong wait time. The endpoint argument must begin with a `/`. func NewWSClient(remoteAddr, endpoint string, options ...func(*WSClient)) *WSClient { addr, dialer := makeHTTPDialer(remoteAddr) c := &WSClient{