Is it possible to guarantee delivery of messages using UDP on Node.js?

前端 未结 4 1469
我寻月下人不归
我寻月下人不归 2021-01-07 00:02

How is it possible to guarantee delivery of messages using UDP on Node.js? For example, I could just resend the packet if it failed - but is there a way to identify when it

4条回答
  •  [愿得一人]
    2021-01-07 00:15

    It isn't possible to guarantee delivery of a specific UDP packet on ANY platform, not just node.js. If what you're looking for is a UDP-based reliable delivery mechanism, look for something like e-net or search for reliable UDP.

    EDIT: or use TCP.

提交回复
热议问题