Skip to content

Manifest: events ​

Complete reference. The signature is a listener argument tuple, not a wrapper object.

manifest:wrong-cmd ​

The device rejected a command format; opcodeName identifies the command.

ts
type Arguments = [
    data: {
      opcodeName: string;
      opcode: number;
      params: string[];
    }
  ];
ts
jsd.on('manifest:wrong-cmd', payload => console.log(payload));

manifest:log ​

One manifest log line or END_LOG marker. requestLogs() collects lines separately.

ts
type Arguments = [
    data: {
      type: 'log' | 'end';
      log: string[];
    }
  ];
ts
jsd.on('manifest:log', payload => console.log(payload));

manifest:block ​

Manifest block transfer response with block and byte positions.

ts
type Arguments = [
    data: {
      blockId: number;
      indexFile: number;
      quantity: number;
    }
  ];
ts
jsd.on('manifest:block', payload => console.log(payload));

manifest:completed ​

Manifest transfer completion result and numeric result key.

ts
type Arguments = [
    data: {
      result: string;
      resultKey: number;
    }
  ];
ts
jsd.on('manifest:completed', payload => console.log(payload));

Aliases used in these signatures are defined in reference types.

Explicit protocol, typed events, isolated transport.