Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sadly, AWS Api Gateway does not support Socket.io #114

Closed
c0j0s opened this issue Oct 17, 2023 · 3 comments
Closed

Sadly, AWS Api Gateway does not support Socket.io #114

c0j0s opened this issue Oct 17, 2023 · 3 comments
Assignees
Labels
CICD CICD

Comments

@c0j0s
Copy link
Contributor

c0j0s commented Oct 17, 2023

See this

We might need to migrate to the WebSocket protocol instead.
or we could expose matching-service ecs to public access, but this is cumbersome as we will be dealing with dynamic IP addresses for connection.

I'll migrate matching-service first to evaluate the effort needed before we make any final decision.

@c0j0s c0j0s added the CICD CICD label Oct 17, 2023
@c0j0s c0j0s self-assigned this Oct 17, 2023
@weidak
Copy link
Contributor

weidak commented Oct 17, 2023

Have you seen http-proxy? Not sure if this will work:

https://socket.io/docs/v3/reverse-proxy/

There are multiple posts stating it is possible to expose the server through API gateway, just that i cant find a solution... (like this in point 2. socketio/socket.io-client#1370 (comment))

Configuring HTTP proxy:
https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-http.html

@c0j0s
Copy link
Contributor Author

c0j0s commented Oct 17, 2023

Sure, I'll try http-proxy out first

@c0j0s
Copy link
Contributor Author

c0j0s commented Oct 17, 2023

Seems like aws proxy path works with socket.io in polling mode, so no major change is required. 🙂

@c0j0s c0j0s closed this as completed Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CICD CICD
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants