interface
quic.StreamDestroyOptions
interface StreamDestroyOptions
- code?: number | bigint
The application error code to include in the
RESET_STREAMandSTOP_SENDINGframes sent to the peer. Numbers are coerced toBigInt. When omitted, the wire code is derived fromerror(see below). - reason?: string
An optional human-readable reason string. Accepted for symmetry with
session.close()andsession.destroy(), but not transmitted on the wire — neitherRESET_STREAMnorSTOP_SENDINGcarry a reason field. Provided for application logging and for use by thestream.onerrorcallback.