Zappa
Zappa copied to clipboard
[Migrated] WebSockets/Channels support
This isn't as much of a feature request as it is an attempt to start of a conversation about the possibility of adding WebSocket support (through Channels or otherwise). This would probably have to be done through AWS IoT (MQTT over WebSockets).
Here is a proof-of-concept using this with AWS Lambda:
http://stesie.github.io/2016/04/aws-iot-pubsub
I also found this, but I'm not sure if it helps us any:
https://github.com/edigiacomo/asgi-mqtt
GitHub Issues
Original discussion: Miserlou/Zappa#649 Original author: @flux627
+1
Would love to see this added!
Could we use APIGateway's websocket api?
https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway.html
Websockets are supported by Serverless I wonder if we could make a similar setup here.
I've used apigateway web sockets in the past. In that case a lambda is prepared/assigned to each action.
Perhaps we could have @websockets.sendmessage
, @websockets.onconnect
, @websockets.ondisconnect
decorators that would wire up to an apigateway websockets instance and configure routing.
I'm happy to partner with someone on this. Any volunteers? I'm new to Zappa but am comfortable with Django/Python and AWS.
Hi @abmohan we would love to have new features, you can create a PR and we will provide the feedback.
Hi there! Unfortunately, this Issue has not seen any activity for at least 90 days. If the Issue is still relevant to the latest version of Zappa, please comment within the next 10 days if you wish to keep it open. Otherwise, it will be automatically closed.
Hi there! Unfortunately, this Issue was automatically closed as it had not seen any activity in at least 100 days. If the Issue is still relevant to the latest version of Zappa, please open a new Issue.