stable-socket icon indicating copy to clipboard operation
stable-socket copied to clipboard

Should `StableSocket` just extend `EventTarget`

Open keithamus opened this issue 3 years ago • 1 comments

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.

keithamus avatar Mar 22 '22 10:03 keithamus

In

Abhi7739309 avatar Jun 28 '24 17:06 Abhi7739309