Send the pubsub pattern subscription notification to the client. */
| 94 | |
| 95 | /* Send the pubsub pattern subscription notification to the client. */ |
| 96 | void 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 |
no test coverage detected