MCPcopy Create free account
hub / github.com/F-Stack/f-stack / addReplyPubsubPatSubscribed

Function addReplyPubsubPatSubscribed

app/redis-6.2.6/src/pubsub.c:96–104  ·  view source on GitHub ↗

Send the pubsub pattern subscription notification to the client. */

Source from the content-addressed store, hash-verified

94
95/* Send the pubsub pattern subscription notification to the client. */
96void addReplyPubsubPatSubscribed(client *c, robj *pattern) {
97 if (c->resp == 2)
98 addReply(c,shared.mbulkhdr[3]);
99 else
100 addReplyPushLen(c,3);
101 addReply(c,shared.psubscribebulk);
102 addReplyBulk(c,pattern);
103 addReplyLongLong(c,clientSubscriptionsCount(c));
104}
105
106/* Send the pubsub pattern unsubscription notification to the client.
107 * Pattern can be NULL: this is useful when the client sends a mass

Callers 1

pubsubSubscribePatternFunction · 0.85

Calls 5

addReplyFunction · 0.85
addReplyPushLenFunction · 0.85
addReplyBulkFunction · 0.85
addReplyLongLongFunction · 0.85
clientSubscriptionsCountFunction · 0.85

Tested by

no test coverage detected