Wrap a handler/listener/stream function into a channel definition tagged
with its kind (handler, listener, or stream) and whether it should only
fire once.
Prefer the createIpcHelpers helpers (handle, listen, …) over
calling this directly — they preset the type argument for you.
Wrap a handler/listener/stream function into a channel definition tagged with its kind (
handler,listener, orstream) and whether it should only fireonce.Prefer the createIpcHelpers helpers (
handle,listen, …) over calling this directly — they preset thetypeargument for you.