I have posted in reactphp github but maybe someone here would be interested to give me some idea. if you quickly checkout this github post.
Basically i am trying to make a socket server and client with laravel.
I have done almost 90% of what i want to do but i am stock with a logic issue and can't figure it out.
Until here every thing is fine. My issue starts when:
Let's say sometime in future one of the API request needs to send a request to Socket server and get response from it. How can i reference the existing connection from API controller to send it a write command ?
Should i use service providers? i don't know... :(