mpc-js
    Preparing search index...

    Interface ReflectionCommands

    interface ReflectionCommands {
        commands(): Promise<string[]>;
        config(): Promise<Map<string, string>>;
        decoders(): Promise<Decoder[]>;
        notCommands(): Promise<string[]>;
        urlHandlers(): Promise<string[]>;
    }

    Hierarchy

    • ReturnType<typeof createReflectionCommands>
      • ReflectionCommands
    Index

    Methods

    • Shows which commands the current user has access to.

      Returns Promise<string[]>

    • Dumps configuration values that may be interesting for the client. This command is only permitted to "local" clients (connected via UNIX domain socket). The following response attributes are available:

      • music_directory: The absolute path of the music directory.

      Returns Promise<Map<string, string>>

    • Shows which commands the current user has access to.

      Returns Promise<string[]>

    • Gets a list of available URL handlers.

      Returns Promise<string[]>