diff --git a/rpc/client.go b/rpc/client.go index d890a0ba6d09b..ce7d839483438 100644 --- a/rpc/client.go +++ b/rpc/client.go @@ -494,7 +494,7 @@ func (c *Client) Subscribe(ctx context.Context, namespace string, channel interf // SupportsSubscriptions reports whether subscriptions are supported by the client // transport. When this returns false, Subscribe and related methods will return // ErrNotificationsUnsupported. -func (c *Client) SupportsSubscription() bool { +func (c *Client) SupportsSubscriptions() bool { return !c.isHTTP }