The close() method of the WebTransport interface closes an ongoing WebTransport session.
close()
MDN Reference