MsendDatagram
Bun

method

quic.QuicSession.sendDatagram

datagram: string | ArrayBufferView<ArrayBufferLike>
): bigint;

Sends an unreliable datagram to the remote peer, returning the datagram ID. If the datagram payload is specified as an ArrayBufferView, then ownership of that view will be transfered to the underlying stream.