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

Method constructor

packages/test-utils/lib/proxy/resp-queue.ts:14–18  ·  view source on GitHub ↗
(private serverSocket: Socket)

Source from the content-addressed store, hash-verified

12 respFramer: RespFramer = new RespFramer();
13
14 constructor(private serverSocket: Socket) {
15 super();
16 this.respFramer.on("message", (msg) => this.handleMessage(msg));
17 this.serverSocket.on("data", (data) => this.respFramer.write(data));
18 }
19
20 handleMessage(data: Buffer) {
21 const request = this.queue.shift();

Callers

nothing calls this directly

Calls 2

handleMessageMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected