Problem with FileSystem to download file

hi , when i download file

 downloadResumable = new FileSystem.createDownloadResumable(
    // 'http://10.0.2.2:8000/file/file.pdf',
    `${FileSystem.documentDirectory}/Books/32211.pdf`,
    {},
    this.callback
  );  

and call

 async onStart() {
    try {
      const { uri } = await this.downloadResumable.downloadAsync();
      console.log('Finished downloading tp ', uri);
    } catch (e) {
      console.error(e);
    }
  }

i’ts work fine and start downloading but when handler stop download

 async onStope() {
    try {
      await this.downloadResumable.pauseAsync();
    } catch (e) {
      console.log(e);
    }
  }

it’s show problem Socket closed

:sweat:

no replay !!:sweat::sweat::sweat::sweat:

I’ll see if I can find someone to look at this. Sorry for the trouble.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.