Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Aria2ClientSystemMethodsBaseClass<T>

Type parameters

  • T

Hierarchy

Index

Methods

Abstract listMethods

  • This method returns all the available RPC methods in an array of string. Unlike other methods, this method does not require secret token. This is safe because this method just returns the available method names.

    example
    await aria2.system.listMethods();
    

    Returns Promise<TAria2ClientMethodList>

    TAria2ClientMethodList

Abstract listNotifications

  • This method returns all the available RPC notifications in an array of string. Unlike other methods, this method does not require secret token. This is safe because this method just returns the available notifications names.

    example
    await aria2.system.listMethods();
    

    Returns Promise<TAria2ClientNotificationList>

    TAria2ClientNotificationList

Abstract multicall

  • This methods encapsulates multiple method calls in a single request. methods is an array of structs. The structs contain two keys: methodName and params. methodName is the method name to call and params is array containing parameters to the method call. This method returns an array of responses. The elements will be either a one-item array containing the return value of the method call or a struct of fault element if an encapsulated method call fails.

    example
    await aria2.system.multicall({
    methodName: "aria2.getVersion",
    params: []
    }, {
    methodName: "system.listMethods",
    params: []
    });

    Type parameters

    • T0

    • T1

    Parameters

    Returns Promise<TAria2ClientMulticallResult<T1>>

    TAria2ClientMulticallResult

Generated using TypeDoc