No, Web PubSub can not be used as a broker. It can be used to help maintain the MQTT over WebSocket clients, but every MQTT message from the client is delivered to and processed by your upstream server.
Azure Web Pub Sub service as MQTT broker?

Domagoj Bazina
221
Reputation points
Hello,
is it possible to use Web Pub Sub services as MQTT broker server? I've found some indications that it could be used but I'm not sure how to do it.
Reference: https://learn.microsoft.com/en-us/azure/azure-web-pubsub/resource-faq
Thanks !
Accepted answer