UDP Messenger
This is a library to send messages over udp. Messages are broken into chunks and reorganized on the other side. There is a loose detection of failures and messages will attempt to resend themselves upon failure.
const Messenger = let messenger = 2000 54000 512 // timeout, port, packet size (must be greater than 32 bytes)messenger // when a message is receivedmessenger //when a messenger begins listeningmessenger // when an error occursmessenger // when a message is sentmessenger // when a failure to receive a message occursmessenger // when a message cannot be resentmessenger// start listening for messagesmessenger //send a message (buffer, host, port)messenger // stop listening
license
ISC