Closed XiaoyuZhann closed 4 months ago
This code is looping in the channel callback (main js thread) which is blocking the event loop. This might be the cause.
Can you try moving the loop outside of the channel.send
callback?
This code is looping in the channel callback (main js thread) which is blocking the event loop. This might be the cause.
Can you try moving the loop outside of the
channel.send
callback?
Thanks for the pointers, it works
Hello, I tested implementing a udpSocket connection in rust, but I can only receive the first value in js, and then print "un def". The frontend I'm using is Electron and the neon version is 1.0.0
RUST:
JS:
The following is the message that is printed when the UDP server sends "test".