kernl API
    Preparing search index...

    Function bindingMethod

    • One method of a domain binding: a request the shell answers, carrying the named params and replying with the named result.

      Parameters

      • type: string

        The request's message type, such as torrent.add.

      • result: string

        The field of the reply that holds the result.

      • ...params: string[]

        The params the method takes, in order.

      Returns DomainBindingMethod

      The method.

      bindingMethod('torrent.add', 'ack', 'request'); // { type: 'torrent.add', params: ['request'], reply: true, result: 'ack' }