reset method

Future<void> reset(
  1. int errorCode
)

Implementation

Future<void> reset(int errorCode) async {
  if (!_connected) return;

  if (remoteId != null && _socket != null && !_socket!.closing) {
    _socket!.sendStreamPacket(
      remoteId!,
      id,
      [ResetStreamFrame(errorCode: errorCode)],
      trackForRetransmit: false,
    );
  }

  await _close(isReset: true);
}