INNER CODE UNIT · JavaScript

JSONRPCNotificationEvent

sonnyp/aria2.js · src/JSONRPCClient.js:21

export class JSONRPCNotificationEvent extends Event {
  constructor(type, options) {
    super(type, options);
    this.method = options?.method;
    this.params = options?.params;
  }
}

class JSONRPCClient extends EventTarget {
  constructor(options) {
    super();
    this.deferreds = Object.create(null);
    this.lastId = 0;

    Object.assign(this, this.constructor.defaultOptions, options);
  }

  id() {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…