I searched the web trying to figure out how to connect to an external Socket Io server.
The scenario:
Client Angular APP
Backend Lumen API
The nodeJS server which is on an external server
I need to connect to the external server using the Lumen API to grab all the online users that are added through Client side APP and then emit through Lumen API to the external Socket IO server an action.
I want to mention that I found many solutions using Lumen events but are not good in this scenario because I don't have any view in Lumen. The backend API is only for api purpose to serve data to Angular app.
Any ideas how can I do that?