Deliver a peer response / errorResponse. Returns true if idJson matched a
pending outbound request (waking its awaiting task), false otherwise (an id
we are not awaiting — e.g. a stray response — is ignored).
Accepts both int_ and whole-number float_ ids: some peers (JavaScript,
Python json.dumps) serialise integer ids as floats (e.g. 1.0), which
validateEnvelope already permits for ids with no fractional part.
Deliver a peer response / errorResponse. Returns true if idJson matched a pending outbound request (waking its awaiting task), false otherwise (an id we are not awaiting — e.g. a stray response — is ignored).
Accepts both int_ and whole-number float_ ids: some peers (JavaScript, Python json.dumps) serialise integer ids as floats (e.g. 1.0), which validateEnvelope already permits for ids with no fractional part.