subscribe abstract method
Subscribes the client to the specified channels.
Returns a Subscription object containing:
messages: AStream<ValkeyMessage>to listen for incoming messages.ready: AFuture<void>that completes when the server confirms subscription to all requested channels.
You MUST await subscription.ready before assuming the subscription is active.
Throws a ValkeyClientException if mixing channel and pattern subscriptions.
Implementation
Subscription subscribe(List<String> channels);