INNER CODE UNIT · JavaScript

JSONRPCEvent

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

export class JSONRPCEvent extends Event {
  constructor(type, options) {
    super(type, options);
    this.data = options?.data;
  }
}

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();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…