Azure Web PubSub Service SDK for Python
Build real-time apps with Azure Web PubSub
Real-time communication is hard to scale. This skill helps you implement WebSocket-based pub/sub messaging using Azure Web PubSub Service.
์คํฌ ZIP ๋ค์ด๋ก๋
Claude์์ ์ ๋ก๋
์ค์ โ ๊ธฐ๋ฅ โ ์คํฌ โ ์คํฌ ์ ๋ก๋๋ก ์ด๋
ํ ๊ธ์ ์ผ๊ณ ์ฌ์ฉ ์์
ํ ์คํธํด ๋ณด๊ธฐ
"Azure Web PubSub Service SDK for Python" ์ฌ์ฉ ์ค์ ๋๋ค. Generate a client access token for user 'user123' with group membership
์์ ๊ฒฐ๊ณผ:
Token generated with URL endpoint and user ID. User is assigned to groups 'group1' and 'group2' with sendToGroup and joinLeaveGroup roles.
"Azure Web PubSub Service SDK for Python" ์ฌ์ฉ ์ค์ ๋๋ค. Send a notification to all connected clients
์์ ๊ฒฐ๊ณผ:
Message broadcast successfully to all connections in the hub. Content type set to application/json with notification payload.
๋ณด์ ๊ฐ์ฌ
์์ This is a documentation-only skill providing usage examples for the Azure Web PubSub Service SDK. No executable code is present. The skill references network operations and environment variable access as part of legitimate Azure SDK usage patterns. Static analysis found no security issues. The skill is safe to publish.
์ํ ์์ธ
๐ ๋คํธ์ํฌ ์ ๊ทผ
๐ ํ๊ฒฝ ๋ณ์
ํ์ง ์ ์
๋ง๋ค ์ ์๋ ๊ฒ
Live chat application
Build a real-time chat system where users can send and receive messages instantly through WebSocket connections.
Real-time dashboard updates
Push live data updates to connected dashboard clients without polling, using group-based message routing.
Multiplayer game networking
Enable low-latency communication between game clients using WebSocket connections with user-based targeting.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Help me set up the Azure Web PubSub Service client in Python using a connection string. I need to send messages to all connected clients.
Generate a client access token for user 'alice' with permissions to join groups and send messages. Use Azure Entra ID authentication.
Show me how to add users to groups and send targeted messages to specific groups in Azure Web PubSub.
Create an async function that broadcasts a JSON message to all connections and handles graceful shutdown of the client and credentials.
๋ชจ๋ฒ ์ฌ๋ก
- Use roles to limit client permissions and follow the principle of least privilege
- Generate short-lived tokens and implement token refresh mechanisms for security
- Use group-based messaging for efficient targeted communication instead of broadcasting
ํผํ๊ธฐ
- Using connection strings in source code instead of environment variables or Key Vault
- Granting full permissions to all clients without role-based access control
- Not handling connection failures or implementing reconnection logic in clients
์์ฃผ ๋ฌป๋ ์ง๋ฌธ
What is the difference between the Service SDK and Client SDK?
How do I authenticate users for WebSocket connections?
Can I send messages to specific users instead of broadcasting?
How do I handle connection disconnections?
What content types are supported for messages?
Is there an async version of the SDK?
๊ฐ๋ฐ์ ์ธ๋ถ ์ ๋ณด
์์ฑ์
sickn33๋ผ์ด์ ์ค
MIT
๋ฆฌํฌ์งํ ๋ฆฌ
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-messaging-webpubsubservice-py์ฐธ์กฐ
main
ํ์ผ ๊ตฌ์กฐ
๐ SKILL.md