Skip to content

Commit

Permalink
rpc: rename to SupportsSubscriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Nov 30, 2022
1 parent e82f59d commit 046c73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/client.go
Expand Up @@ -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
}

Expand Down

0 comments on commit 046c73e

Please sign in to comment.