interface DevToolsEvents {
    metrics: CustomEvent<Record<string, any>>;
    peers: CustomEvent<Peer[]>;
    pubsub:message: CustomEvent<PubSubRPCMessage>;
    pubsub:subscription-change: CustomEvent<SubscriptionChangeData>;
    self: CustomEvent<Peer>;
}

Properties

metrics: CustomEvent<Record<string, any>>

Node metrics have been updated

peers: CustomEvent<Peer[]>

The node's connected peers have changed

pubsub:message: CustomEvent<PubSubRPCMessage>

A pubsub message was received

pubsub:subscription-change: CustomEvent<SubscriptionChangeData>

The subscriptions of a peer have changed

The node's status has changed - new addresses and/or protocols, etc