browserglue icon indicating copy to clipboard operation
browserglue copied to clipboard

Define a way to define event handlers once and replace them on re-evaluation on `Client`

Open munshkr opened this issue 3 years ago • 0 comments

This forces the client to have a single handler for each event type, useful for live coding environments that usually re-evaluate message handling routines.

Proposal: make .on replace the handler automatically, and define a .addEventListener for having multiple handlers for the same event.

munshkr avatar Feb 20 '22 18:02 munshkr