github / github/stable-socket

Should `StableSocket` just extend `EventTarget`

未關閉
#6 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
143
分支
18
平均合併
7 小時 55 分鐘
30 天內合併 PR
2

描述

It's a little un-idiomatic to use delegate objects as a "callback bag" in the Web Platform.

This could potentially, instead, use EventTarget, and emit events for each of the callbacks we have in the `delegate` object. This gives us a lot more flexibility with handling these lifecycle steps.

貢獻指南

開啟貢獻指南

研究方向

先閱讀 StableSocket 的實作,以及 issue 中描述的 delegate callbacks。判斷擴充 EventTarget 是否能在保留現有生命週期行為的同時取代 callback-bag 設計;當該設計決策及其所需範圍明確後,issue 即完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
web-dev
Issue 類型
重構
難度
5/5
預估耗時
一週以上
活躍度
停滯
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。