I have a Laravel php app, and a NodeJS client. Something happens in my client and I want to update my php backend, so I publish a message to a Redis channel, and in my Laravel app I have a Redis subscriber listening for messages on that channel.
Ideally, I want to fire an event when a message is received but I get this error
[Predis\Response\ServerException] ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / QUIT allowed in this context
I am able to do what I need from within the subscriber, like updating the repository etc... but I am unable to fire a Laravel event, which is what it makes sense to do here.