peer-devicer - v0.1.3
    Preparing search index...

    Function buildEdgeShape

    • Produce the canonical Omit<PeerEdge, 'id'> shape for a single (deviceId ↔ peerDeviceId) pairing. The caller is responsible for calling storage.upsertEdge() with the returned value.

      Canonical ordering: deviceIdA < deviceIdB lexicographically, so the same pair always produces the same edge regardless of which device we are evaluating from.

      Parameters

      Returns Omit<PeerEdge, "id">