Spend a lot of time wondering why emit stopped working on a project when in another one it works with no issues.
The problem is: when redis is enabled direct message and emit doesn't work.
In my testing, socket emits appear to work correctly when Redis is enabled.
Is the issue you're seeing only happening when sockets join rooms and Redis is enabled? I don’t use rooms in my setup, but understanding this would help me determine whether I need to run additional tests on socket emits in my own projects (v7.7.9).
Hello @guptast thanks for the reply, actually emit doesn’t work at all when redis is enabled, with socketid inside a room or not
Disabling redis and all working again
I have tested the socket emit actions when redis is enabled, and these actions are working correctly. It seems to be an issue with the socket joining a room when redis is enabled.
I believe the socket redis adapter will connect itself when it is not connected, so it doesn't need to be ready.
We use the redis streams adapter with ioredis client. The examples simply pass the client without connecting first like with the standard redis client.
Yes, you're correct, also made some console log and can confirm it has nothing to do with time issues..
Will try to create a repro outside Wappler to see if the issue relies purely on redis-streams-adapter, which also has a similar recent bug reported, but closed due to inactivity..