MCPcopy
hub / github.com/redis/node-redis / sendToClients

Method sendToClients

packages/test-utils/lib/proxy/redis-proxy.ts:259–270  ·  view source on GitHub ↗
(connectionIds: readonly string[], data: Buffer)

Source from the content-addressed store, hash-verified

257 }
258
259 public sendToClients(connectionIds: readonly string[], data: Buffer): readonly SendResult[] {
260 const results = connectionIds.map((connectionId) =>
261 this.sendToClient(connectionId, data)
262 );
263
264 const successCount = results.filter((result) => result.success).length;
265 const totalCount = results.length;
266
267 this.log(`Sent ${data.length} bytes to ${successCount}/${totalCount} specified clients`);
268
269 return results;
270 }
271
272 public getActiveConnectionIds(): readonly string[] {
273 return Array.from(this.connections.keys());

Callers

nothing calls this directly

Calls 2

sendToClientMethod · 0.95
logMethod · 0.95

Tested by

no test coverage detected