Skip to content

typed-ipc: Return cleanup functions when subscribing via main thread IpcListener #19

@psychedelicious

Description

@psychedelicious

Clear and concise description of the problem

I want an easy way to unsubscribe individual listeners and handlers to have more granular control over IPC events.

As of 06b577a, cleanup functions are returned from the renderer process's IpcListener subscription methods. It would be nice for the main process's IpcListener to do the same.

Suggested solution

I'll submit a PR with a simple implementation.

Alternative

Manage subscriptions manually.

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions