mpc-js
    Preparing search index...

    Class ConnectionCommands

    Index

    Constructors

    Methods

    • Announce that this client is interested in all tag types. This is the default setting for new clients.

      Returns Promise<void>

    • Clear the list of tag types this client is interested in. This means that MPD will not send any tags to this client.

      Returns Promise<void>

    • Closes the connection to MPD. MPD will try to send the remaining output buffer before it actually closes the connection, but that cannot be guaranteed. This command will not generate a response.

      Returns void

    • Remove one or more tags from the list of tag types the client is interested in. These will be omitted from responses to this client.

      Parameters

      • names: string[]

      Returns Promise<void>

    • Re-enable one or more tags from the list of tag types for this client. These will no longer be hidden from responses to this client.

      Parameters

      • names: string[]

      Returns Promise<void>

    • This is used for authentication with the server. password is simply the plaintext password.

      Parameters

      • password: string

      Returns Promise<void>

    • Shows a list of available tag types. It is an intersection of the metadata_to_use setting and this client's tag mask. About the tag mask: each client can decide to disable any number of tag types, which will be omitted from responses to this client. That is a good idea, because it makes responses smaller.

      Returns Promise<string[]>