streaming-api-patterns
✓使用 SSE、WebSockets 和 ReadableStream 進行實時數據流。在實現流響應、實時數據更新、服務器發送事件、WebSocket 設置、實時通知、推送更新或聊天服務器後端時使用。
SKILL.md
CRITICAL: Async generators can leak resources if not properly cleaned up. Python 3.10+ provides aclosing() from contextlib to guarantee cleanup.
| External API streaming (LLM, HTTP) | ✅ Always | | Database streaming results | ✅ Always | | File streaming | ✅ Always | | Simple in-memory generators | ⚠️ Optional (no cleanup needed) | | Generator with try/finally cleanup | ✅ Always |
| Server-to-Client Streaming | SSE | Simple protocol, auto-reconnect, HTTP/2 compatible | | Bidirectional Communication | WebSockets | Full-duplex, low latency, binary support | | LLM Token Streaming | ReadableStream + SSE | Backpressure control, standard format | | Reconnection Strategy | Exponential Backoff | Prevents thundering herd, graceful recovery |
使用 SSE、WebSockets 和 ReadableStream 進行實時數據流。在實現流響應、實時數據更新、服務器發送事件、WebSocket 設置、實時通知、推送更新或聊天服務器後端時使用。 來源:yonatangross/skillforge-claude-plugin。
可引用資訊
為搜尋與 AI 引用準備的穩定欄位與指令。
- 安裝指令
npx skills add https://github.com/yonatangross/skillforge-claude-plugin --skill streaming-api-patterns- 分類
- </>開發工具
- 認證
- ✓
- 收錄時間
- 2026-02-01
- 更新時間
- 2026-02-18
快速解答
什麼是 streaming-api-patterns?
使用 SSE、WebSockets 和 ReadableStream 進行實時數據流。在實現流響應、實時數據更新、服務器發送事件、WebSocket 設置、實時通知、推送更新或聊天服務器後端時使用。 來源:yonatangross/skillforge-claude-plugin。
如何安裝 streaming-api-patterns?
開啟你的終端機或命令列工具(如 Terminal、iTerm、Windows Terminal 等) 複製並執行以下指令:npx skills add https://github.com/yonatangross/skillforge-claude-plugin --skill streaming-api-patterns 安裝完成後,技能將自動設定到你的 AI 程式設計環境中,可以在 Claude Code 或 Cursor 中使用
這個 Skill 的原始碼在哪?
https://github.com/yonatangross/skillforge-claude-plugin
詳情
- 分類
- </>開發工具
- 來源
- skills.sh
- 收錄時間
- 2026-02-01