We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
9.1
I get the following error in my code while am following the documentation.
With IORedis
redis.on('message', (channel, messages) => { console.log(message) }) redis.subscribe('user:add', (error, count) => { if (error) { console.log(error) } })
With AdonisJS
redis.subscribe('user:add', (message) => { console.log(message) }, { onError(error) { console.log(error) }, onSubscription(count) { console.log(count) }, })
Expected 2 arguments, but got 3.ts(2554)
redis.subscribe(`job-application:${entityId}`, (message) => { console.log('send message:', message) }, { onError(error) { console.error('Failed to subscribe:', error) }, onSubscription(count) { console.log(`Subscribed to ${count} channels.`) }, })
No response
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
No branches or pull requests
Package version
9.1
Describe the bug
I get the following error in my code while am following the documentation.
With IORedis
With AdonisJS
Expected 2 arguments, but got 3.ts(2554)
Reproduction repo
No response
The text was updated successfully, but these errors were encountered: