There are two features of the WebSocket server:
- You don't need to rely on external software like Mosquitto. I made the external process creation happen from Django, so it starts with Django by creating a custom command for it. This makes it integrated within Django.
python manage.py run_websocket_client - WebSocket is capable of handling higher traffic compared to MQTT.
Just to clarify, all messages related to device statuses will pass through the external process.
I’m really happy to have this discussion with you.
If you have any advice, I’m excited to hear it. I’ll start converting it into an app extension with documentation so that anyone can easily add it within Django.