* Registers an internal event handler for either 'open' or 'close' events. * * @return A function that can be called to unregister the handler.
( type: 'open' | 'close', handler: () => Promise<void>, )
source not stored for this graph (policy: none)
nothing calls this directly
no test coverage detected