Does node.js have built-in support for UDP(datagam

2019-08-09 07:24发布

问题:

I'm confused as to how to install the proper UDP package in node.js.

When I try

npm install dgram

I get an error message saying package not available.

So is UDP support 'builtin' to the default node.js install ?

回答1:

dgram is built into the API of node. Just require away.

var dgram = require('dgram');

Documentation.



标签: node.js udp