property

quic.QuicSession.maxDatagramSize

readonly maxDatagramSize: number

The maximum datagram payload size in bytes that the peer will accept. This is derived from the peer's maxDatagramFrameSize transport parameter minus the DATAGRAM frame overhead (type byte and variable-length integer encoding). Returns 0 if the peer does not support datagrams or if the handshake has not yet completed. Datagrams larger than this value will not be sent.