(
initiator: RedisSocketInitiator,
clientId: string,
options?: RedisSocketOptions,
)
| 97 | } |
| 98 | |
| 99 | constructor( |
| 100 | initiator: RedisSocketInitiator, |
| 101 | clientId: string, |
| 102 | options?: RedisSocketOptions, |
| 103 | ) { |
| 104 | super(); |
| 105 | |
| 106 | this.#initiator = initiator; |
| 107 | this.#connectTimeout = options?.connectTimeout ?? 5000; |
| 108 | this.#reconnectStrategy = this.#createReconnectStrategy(options); |
| 109 | this.#socketFactory = this.#createSocketFactory(options); |
| 110 | this.#socketTimeout = options?.socketTimeout; |
| 111 | this.#clientId = clientId; |
| 112 | } |
| 113 | |
| 114 | #createReconnectStrategy(options?: RedisSocketOptions): ReconnectStrategyFunction { |
| 115 | const strategy = options?.reconnectStrategy; |
nothing calls this directly
no test coverage detected