Hello Vinod Kumar ,
Thanks for reaching out in the Microsoft Q&A!
While there isn't a separate Python SDK specifically for Azure Web PubSub with Socket.IO, you can leverage the Azure Web PubSub Python SDK alongside the websockets library. First, install the dependencies using pip install azure-webpubsub websockets[wamp]
. Obtain your Azure Web PubSub connection string and store it securely. Create a FastAPI endpoint that handles WebSocket connections and use the azure-webpubsub
library within the handler to connect to Azure Web PubSub, manage pub/sub operations, and send/receive messages. For further details, you can refer to the Python server SDK for Azure Web PubSub, the Quickstart guide for Web PubSub, and the WebSockets documentation.
If you find this helpful, please accept this answer to close the thread. Thanks!