@SUPAD It sounds like you need to build a simple API in Laravel to handle the saving of data, that you would call inside your Node.js application, rather than using “events”.
Listening to NodeJS events from Laravel ?
Hello everyone,
I'm creating a quiz game for which i need nodeJS to handle the different screens involved.
It works great but now i need to save the player answer.
I could use AJAX from the client's player, access MySQL from NodeJS but it seems ugly to me.
I would like to trigger a Laravel event from NodeJS, in a similar way that Laravel broadcast events via Redis.
I would have NodeJS emitting in redis and Laravel beeing triggered by this.
Is it possible ?
In the video tutorial (https://laracasts.com/series/real-time-laravel-with-socket-io) it's not mentionned, not even to say it's not possible.
Thanks
Please or to participate in this conversation.