From 454617bf830f851c7db2660427b699b47092e342 Mon Sep 17 00:00:00 2001 From: James White Date: Mon, 29 May 2023 09:04:30 -0400 Subject: [PATCH] Add a note about multiple Pub/Sub channel listeners (#2433) * Add multiple listener language to pub/sub docks Clarify that multiple subscriptions create multiple listeners. * Update pub-sub.md --------- Co-authored-by: Leibale Eidelman --- docs/pub-sub.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/pub-sub.md b/docs/pub-sub.md index 4b0e138d8a..b319925569 100644 --- a/docs/pub-sub.md +++ b/docs/pub-sub.md @@ -39,6 +39,8 @@ await client.pSubscribe('channe*', listener); await client.sSubscribe('channel', listener); ``` +> ⚠️ Subscribing to the same channel more than once will create multiple listeners which will each be called when a message is recieved. + ## Publishing ```javascript