github / github/stable-socket

Should `StableSocket` just extend `EventTarget`

Abierto
#6 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
143
Forks
18
Merge medio
7 h 55 min
PR fusionados (30 d)
2

Descripción

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.

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript
Área
web-dev
Tipo de issue
Refactorización
Dificultad
5/5
Tiempo estimado
Más de una semana
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.