react-native-udp icon indicating copy to clipboard operation
react-native-udp copied to clipboard

Broadcast stops on network change

Open bartoszboruta opened this issue 1 year ago • 2 comments

Description

It seems like broadcast stops on network change without throwing an error or close callback.

Steps to reproduce

Steps to reproduce the behavior:

  1. 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)
  1. Observe responses in server.on("message") listener
  2. Change wifi network or close wifi to use network data
  3. Go back to the app
  4. No more responses in message listener, "close" and "error" listeners was not called
  5. server.send callback is not called

Relevant information

OS ios/android
react-native 71
react-native-udp 4.1.7

bartoszboruta avatar Jun 20 '24 08:06 bartoszboruta

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.

github-actions[bot] avatar Jul 22 '24 00:07 github-actions[bot]

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

bartoszboruta avatar Jul 22 '24 09:07 bartoszboruta