Closed
Description
Description
When providing a callback function to server.close() it works as expected on Android but on iOS (iOS Simulator iPhone 13 iOS 15.2) the callback never fires. Despite this when I check the socket is successfully unbound and the server is shutdown.
Steps to reproduce
The console.debug() statement below is never executed.
server.close(() => {
console.debug('Local server finished shuting down');
});
Current behavior
The TCP server shutdown is successful but the server.close() callback never fires.
Expected behavior
The server.close() callback should fire on iOS just as it does on Android.
Relevant information
OS | iOS 15.2 |
react-native | 0.66.3 |
react-native-tcp-socket | 5.6.0 |