File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -503,13 +503,21 @@ module type Client = sig
503503 (* * Returns the number of subscribers (not counting clients subscribed to patterns) for the specified channels. *)
504504 val pubsub_numsub : connection -> string list -> reply list IO .t
505505
506- (* * Subscribes the client to the specified channels. *)
506+ (* * Subscribes the client to the specified channels.
507+
508+ From now on only pubsub related commands are accepted on the connection.
509+ Use {!stream} to read the stream the notifications (possibly-concurrently).
510+ Each notification in the form of [ ["message"; "<channel name>"; "<message>"] ] for
511+ subscribed messages, or [ ["subscribe"; <list of channel>] ] or [ ["unsubscribe"; <list of channels] ].
512+ Use {!reset} to exit the subscription state and issue other types of commands.
513+ See https://redis.io/docs/latest/develop/interact/pubsub/ for more details.
514+ *)
507515 val subscribe : connection -> string list -> unit IO .t
508516
509517 (* * Unsubscribes the client from the given channels, or from all of them if an empty list is given *)
510518 val unsubscribe : connection -> string list -> unit IO .t
511519
512- (* * Subscribes the client to the given patterns. *)
520+ (* * Subscribes the client to the given patterns. See {!subscribe} for more details. *)
513521 val psubscribe : connection -> string list -> unit IO .t
514522
515523 (* * Unsubscribes the client from the given patterns. *)
You can’t perform that action at this time.
0 commit comments