close method
Close the session with an error code.
Implementation
void close({int errorCode = 0}) {
if (_closed) return;
_closed = true;
// Send CLOSE_WEBTRANSPORT_SESSION capsule
final capsule = CloseWebTransportSessionCapsule(errorCode: errorCode);
connection.sendCapsule(sessionId, capsule);
_incomingStreams.close();
_datagrams.close();
}