CloseWebTransportSessionCapsule constructor
Creates a CLOSE_WEBTRANSPORT_SESSION capsule.
Either provide raw data from the wire, or supply errorCode and/or
errorMessage to have the payload encoded automatically.
Implementation
CloseWebTransportSessionCapsule({
Uint8List? data,
int errorCode = 0,
String? errorMessage,
}) : errorCode = (data != null) ? _decodeErrorCode(data) : errorCode,
errorMessage =
(data != null) ? _decodeErrorMessage(data) : errorMessage,
super(
type: 0x2843,
data: data ?? _buildData(errorCode, errorMessage),
);