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

Method createServer

packages/test-utils/lib/proxy/redis-proxy.ts:276–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274 }
275
276 private createServer(): net.Server {
277 return net.createServer((clientSocket) => {
278 this.handleClientConnection(clientSocket);
279 });
280 }
281
282 private handleClientConnection(clientSocket: net.Socket): void {
283 clientSocket.pause();

Callers 4

constructorMethod · 0.95
withConnectedSocketFunction · 0.80
withCapturedConnectFunction · 0.80
setupMockServerFunction · 0.80

Calls 1

Tested by 3

withConnectedSocketFunction · 0.64
withCapturedConnectFunction · 0.64
setupMockServerFunction · 0.64