diff --git a/content/develop/clients/nodejs/produsage.md b/content/develop/clients/nodejs/produsage.md index 32be48680a..0636b4ea49 100644 --- a/content/develop/clients/nodejs/produsage.md +++ b/content/develop/clients/nodejs/produsage.md @@ -77,8 +77,10 @@ After approximately two minutes, the client logs an error message and terminates To set a timeout for a connection, use the `connectTimeout` option: ```typescript const client = createClient({ - // setting a 10-second timeout - connectTimeout: 10000 // in milliseconds + socket: { + // setting a 10-second timeout + connectTimeout: 10000 // in milliseconds + } }); client.on('error', error => console.error('Redis client error:', error)); ``` \ No newline at end of file