browserglue
browserglue copied to clipboard
Define a way to define event handlers once and replace them on re-evaluation on `Client`
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.