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