Zappa icon indicating copy to clipboard operation
Zappa copied to clipboard

[Migrated] WebSockets/Channels support

Open dmitrijs-balcers opened this issue 3 years ago • 8 comments

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

dmitrijs-balcers avatar Mar 03 '21 18:03 dmitrijs-balcers

+1

erwinfeser avatar Feb 13 '22 11:02 erwinfeser

Would love to see this added!

troberts-28 avatar Feb 17 '22 15:02 troberts-28

Could we use APIGateway's websocket api?

jottenlips avatar Feb 20 '22 15:02 jottenlips

https://docs.aws.amazon.com/lambda/latest/dg/services-apigateway.html

jottenlips avatar Feb 20 '22 15:02 jottenlips

Websockets are supported by Serverless I wonder if we could make a similar setup here.

jottenlips avatar Mar 16 '22 19:03 jottenlips

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.

monkut avatar Aug 18 '22 12:08 monkut

I'm happy to partner with someone on this. Any volunteers? I'm new to Zappa but am comfortable with Django/Python and AWS.

abmohan avatar Feb 02 '23 17:02 abmohan

Hi @abmohan we would love to have new features, you can create a PR and we will provide the feedback.

souravjamwal77 avatar Feb 03 '23 04:02 souravjamwal77

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.

github-actions[bot] avatar Apr 03 '24 15:04 github-actions[bot]

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.

github-actions[bot] avatar Apr 13 '24 19:04 github-actions[bot]