Function reasonToCode

  • Converts transport level error reasons to codes for the quic system.

    Any unknown reasons default to code 0.

    Parameters

    • _type: "write" | "read"
    • Optional reason: any

    Returns number

Generated using TypeDoc