interface

quic.StreamDestroyOptions

interface StreamDestroyOptions

  • code?: number | bigint

    The application error code to include in the RESET_STREAM and STOP_SENDING frames sent to the peer. Numbers are coerced to BigInt. When omitted, the wire code is derived from error (see below).

  • reason?: string

    An optional human-readable reason string. Accepted for symmetry with session.close() and session.destroy(), but not transmitted on the wire — neither RESET_STREAM nor STOP_SENDING carry a reason field. Provided for application logging and for use by the stream.onerror callback.