-
Notifications
You must be signed in to change notification settings - Fork 157
Open
Labels
Description
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 |
vlorian-de