Skip to content
This repository was archived by the owner on Feb 6, 2022. It is now read-only.
This repository was archived by the owner on Feb 6, 2022. It is now read-only.

Add a disconnect method #2

Description

@dropbear32

Currently one can only connect the socket. This is sufficient for programs that send RPC info about themselves.

However, there also exists the case where a program ∆ may provide RPC info for another program Ω. This may be done for a variety of reasons, including the original program not supporting Discord RPC.

∆ may run under a daemon-like paradigm, wherein it connects the RPC socket when Ω is run and disconnects it when Ω finishes/is killed. In this case, it is useful to have a disconnect method for the SwordRPC class.

Alternatively, SwordRPC's socket could be made public and disconnected directly by ∆.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions