github / github/stable-socket

Should `StableSocket` just extend `EventTarget`

Open
#6 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
143
Forks
18
Avg merge
7h 55m
Merged PRs (30d)
2

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.