There is a way to manage the socket.io creation at Server Side?, Currently, I couldn't found any doc, Only found in relation with the socket is created per request from a client "io.connect(server)".
The current flow work OK:
- Set Socket.io (at Node.js) at SERVER:PORT
- Client connect to SERVER
- using io.connect(SERVER:PORT)
I wonder if it is possible ? Trying to do:
- Set Socket.io (at Node.js) at SERVER:PORT
- Recieved a POST (REST) - Server side
- Create/Open Socket.io a server side.
- At response of Post send the id?
- the clien open a socke.io
Sent to client socket.id to client as