Spaces:
Sleeping
Sleeping
Download api/consumers.py from Dayozoe/harvestconnect-api: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/Dayozoe/harvestconnect-api/resolve/main/api/consumers.py
- Command line
-
hf download hf://spaces/Dayozoe/harvestconnect-api/api/consumers.py
-
curl -L -o consumers.py https://huggingface.co/spaces/Dayozoe/harvestconnect-api/resolve/main/api/consumers.py
410 Bytes
| from channels.generic.websocket import JsonWebsocketConsumer | |
| from .consumers_connection import ChatConnectionMixin | |
| from .consumers_events import ChatEventsMixin | |
| from .consumers_presence import ChatPresenceMixin | |
| class ChatConsumer( | |
| ChatConnectionMixin, | |
| ChatEventsMixin, | |
| ChatPresenceMixin, | |
| JsonWebsocketConsumer, | |
| ): | |
| """Compose connection, event and presence behaviour for chat sockets.""" | |