From 046c73e31c0caa5216611db3821c65c3d836b7f9 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 30 Nov 2022 15:06:04 +0100 Subject: [PATCH] rpc: rename to SupportsSubscriptions --- rpc/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }