I use nodejs to listen to data from UDP:
const server = dgram.createSocket({type: "udp4", reuseAddr: true});
server.bind({address: config.udpIp, port: config.udpPort});
stop() {
console.log('Stop UDP listener');
server.close();
}
But when I call stop() method, messages are still arriving my application. Please help. Thanks a lot.
via hoang
No comments:
Post a Comment