react-native-udp
react-native-udp copied to clipboard
Broadcast stops on network change
Description
It seems like broadcast stops on network change without throwing an error or close callback.
Steps to reproduce
Steps to reproduce the behavior:
- Setup
const port = 3333;
const server = dgram.createSocket({
reusePort: true,
debug: true,
type: 'udp4',
});
server.bind(port);
server.setBroadcast(true);
setInterval(() => {
server.send(...) with port 3333 and address 255.255.255.255
}, 5000)
- Observe responses in server.on("message") listener
- Change wifi network or close wifi to use network data
- Go back to the app
- No more responses in message listener, "close" and "error" listeners was not called
-
server.sendcallback is not called
Relevant information
| OS | ios/android |
| react-native | 71 |
| react-native-udp | 4.1.7 |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.
Nothing changed