e/blob/v14.8.0/lib/dgram.js">lib/dgram.js</a></p>
<p>The <code>dgram</code> module provides an implementation of UDP datagram sockets.</p>
<pre><code class="language-js"><span class="hljs-keyword">const</span> dgram = <span class="hljs-built_in">require</span>(<span class="hljs-string">'dgram'</span>);
<span class="hljs-keyword">const</span> server = dgram.createSocket(<span class="hljs-string">'udp4'</span>);

server.on(<span class="hljs-string">'error'</span>, (err) => {
  <span class="hljs-built_in">cons