Routing to different services over websocket from a single Client websocket connection


#1

What I want from a Client is to open single WebSocket connection to API Gateway and then route the messages to different services via WebSockets.

So essentially the Client would hit on a path exposed by API Gateway but the API Gateway would intelligently route these requests to different services.

If I expose multiple routes in the API Gateway and map them to service WebSockets routes then the client would have to open multiple WebSocket connection and also be intelligent to hit the right path for required data.

How can intelligent routing be achieved in the Gateway.