Interface representing Gun peer event data GunPeerEventData

interface GunPeerEventData {
    action: "add" | "remove" | "connect" | "disconnect";
    peer: string;
    timestamp: number;
}

Properties

Properties

action: "add" | "remove" | "connect" | "disconnect"

The action performed (add, remove, connect, disconnect)

peer: string

The peer URL

timestamp: number

Timestamp of the event