Mclose
Bun

method

quic.QuicEndpoint.close

close(): Promise<void>;

Gracefully close the endpoint. The endpoint will close and destroy itself when all currently open sessions close. Once called, new sessions will be rejected.

Returns a promise that is fulfilled when the endpoint is destroyed.