Replies: 1 comment 7 replies
-
Hi @nitsujri and thank you for the kind comments. I designed this project with the idea that it would be used within projects where you wanted to use Django admin to create most of the setup within AWS, especially the creation of the API Gateway integration. From what you're describing you'd like to be able to create the API Gateway setup outside of the project and then have it accept the request as it comes in and then handle it as if it were already setup. I'll have to have a think about that, currently it would fail whilst calling the self._allowed_apigateway() method as that's designed to only allow expected API Gateways. So one option may be to extend subclass WebSocketView and change the handling of that method to perform the setup. I've not investigated it but it's just a thought at this stage whilst I'm trying to get a better idea of your requirements as I've not used Mangum myself. One way other way would be if I introduced DRF support to expose API endpoints to the tables. Then you could populate the tables via API and call call endpoints to trigger the createApiGateway and createCustomDomain management commands but I don't think this will quite do what you want of dynamically setting it up as part of the request. |
Beta Was this translation helpful? Give feedback.
-
Hi @StevenMapes!
I found your library and it is incredible. I came over from the Mangum side specifically discussing how to use Mangum with AWS Websockets.
Mangum's solution was never complete and eventually removed. My team just started becoming interested in Django's channels and made my way here. This is an amazing library, thanks so much for bringing it to the community.
At the moment, it looks like django-aws-api-gateway-websockets (DAAGW for short?) requires creating+manging the Websocket gateway via itself. I was wondering if there was any way to allow non-locally created routes.
All of our infra is managed via CDK and so having this one portion managed here makes it significantly less than ideal.
Ideally, if possible, the app stores this information as the connection request comes in, post auth if necessary.
Thanks!
Justin
Beta Was this translation helpful? Give feedback.
All reactions