Detach the transport event subscription. Idempotent.
Handle a NIP-5D envelope from a napplet.
The requesting napplet's window identifier
NappletMessage JSON envelope (e.g., { type: 'signer.signEvent', id, event })
Callback to send NappletMessage responses back to the napplet
OptionalonCalled when a napplet window is destroyed. Services should clean up any state associated with the window.
The destroyed napplet's window identifier
The created CVM service, exposing the handler plus a disposal hook.