Skip to content

Commit 454617b

Browse files
jamesw6811leibale
andauthored
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 <me@leibale.com>
1 parent 0298c1a commit 454617b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/pub-sub.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ await client.pSubscribe('channe*', listener);
3939
await client.sSubscribe('channel', listener);
4040
```
4141

42+
> ⚠️ Subscribing to the same channel more than once will create multiple listeners which will each be called when a message is recieved.
43+
4244
## Publishing
4345

4446
```javascript

0 commit comments

Comments
 (0)