[Python] MQTT-like Publish-Subscribe with Python and WebSockets?

Discussão em 'Python' iniciado por Stack, Julho 9, 2025.

  1. Stack

    Stack Membro Participativo

    I'm working on a project that needs a framework to handle pub/sub connections between a webpage and Python.

    I've already used mosquitto (an open-source implementation of MQTT) and it worked, but the server needs a modded Apache module to redirect WebSocket connections to the broker.

    Right now, I'm looking at Tornado but it doesn't fit on my requirements. I need a solution for the follwing:

    • A web page connects to a python server or some kind of broker and subscribes a topic do receive data associated with that topic.
    • Every time Python has data associated with that topic (let's say every 10 seconds), the data is sent to the specific client (or clients) that subscribed to that topic.

    Thanks in advance

    Continue reading...

Compartilhe esta Página