MCPcopy
hub / github.com/redis/ioredis / constructor

Method constructor

test/helpers/mock_server.ts:57–65  ·  view source on GitHub ↗
(
    private port: number,
    public handler?: MockServerHandler,
    private slotTable?: any
  )

Source from the content-addressed store, hash-verified

55 private socket?: Server;
56
57 constructor(
58 private port: number,
59 public handler?: MockServerHandler,
60 private slotTable?: any
61 ) {
62 super();
63 this.connect();
64 createdMockServers.push(this);
65 }
66
67 connect() {
68 this.socket = createServer((c) => {

Callers

nothing calls this directly

Calls 2

connectMethod · 0.95
pushMethod · 0.45

Tested by

no test coverage detected