Should `StableSocket` just extend `EventTarget`
- Lingua principale
- TypeScript
- Stelle
- 143
- Fork
- 18
- Merge medio
- 7h 55m
- PR unite (30g)
- 2
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Start by reading the StableSocket implementation and the delegate callbacks described in the issue. Determine whether extending EventTarget can replace the callback-bag design while preserving the existing lifecycle behavior; the issue is done when that design decision and its required scope are clear.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- web-dev
- Tipo di issue
- Refactoring
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 25/100