Send the pubsub subscription notification to the client. */
| 66 | |
| 67 | /* Send the pubsub subscription notification to the client. */ |
| 68 | void addReplyPubsubSubscribed(client *c, robj *channel) { |
| 69 | if (c->resp == 2) |
| 70 | addReply(c,shared.mbulkhdr[3]); |
| 71 | else |
| 72 | addReplyPushLen(c,3); |
| 73 | addReply(c,shared.subscribebulk); |
| 74 | addReplyBulk(c,channel); |
| 75 | addReplyLongLong(c,clientSubscriptionsCount(c)); |
| 76 | } |
| 77 | |
| 78 | /* Send the pubsub unsubscription notification to the client. |
| 79 | * Channel can be NULL: this is useful when the client sends a mass |
no test coverage detected