I'm using microservices technic with node js and express, i used API Gateway(node js service that support https) that transfer the api requests to the other services, also i'm using SocketIO as a node js service.
I would like to know what will be the best way to securely connect to the socket IO service from the client if i used API Gateway technic.
There is two approach that i'm considered:
- Use the socketIO service as a independent service without go through from API Gateway.
- some way to transfer from API Gateway to socketIO service
Any advise from someone that solved this case?