Skip to content

Conversation

@franciscop
Copy link

@franciscop franciscop commented Nov 26, 2025

Note: I open this PR as a conversation starter, I've explained my reasoning in a Redis Issue here. I'd be happy to open an issue instead, but I thought showing the code would be faster/easier.

I'd like to suggest returning the client instance in the .connect() method, so that we can create a client in a single step:

const client = await new Client().connect();

If this change is welcome, I'd be happy to add more things to this PR like testing, documentation, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant