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

Function createSocket

packages/client/lib/client/socket.spec.ts:12–20  ·  view source on GitHub ↗
(options: RedisSocketOptions)

Source from the content-addressed store, hash-verified

10 const CLIENT_ID = 'test-client-id';
11
12 function createSocket(options: RedisSocketOptions): RedisSocket {
13 const socket = new RedisSocket(() => Promise.resolve(), CLIENT_ID, options);
14
15 socket.on('error', () => {
16 // ignore errors
17 });
18
19 return socket;
20 }
21
22 describe('reconnectStrategy', () => {
23 it('false', async () => {

Callers 3

socket.spec.tsFile · 0.85
withConnectedSocketFunction · 0.85
withCapturedConnectFunction · 0.85

Calls 1

resolveMethod · 0.65

Tested by

no test coverage detected