isCompatibleWith method

bool isCompatibleWith(
  1. CapabilityHandshake other
)

Whether this handshake is mutually compatible with other.

Peers are compatible when both advertise kProtocolId, both advertise kProtocolMajorVersion, their major versions and codecs agree, and both require ordered-reliable delivery. Feature negotiation is caller-driven via hasFeature / checkCompatible's requiredFeatures argument.

Implementation

bool isCompatibleWith(CapabilityHandshake other) =>
    checkCompatible(other).isOk;