I wonder how it would compare in terms of cost with doing it via the api-gateway. It would depend on how your app and user base scales and what the sockets are being used for I suppose.
https://docs.aws.amazon.com/apigateway/latest/developerguide...
https://docs.aws.amazon.com/apigateway/latest/developerguide...