<span class="hljs-built_in">require</span>(<span class="hljs-string">'dgram'</span>);
<span class="hljs-keyword">const</span> message = Buffer.from(<span class="hljs-string">'Some bytes'</span>);
<span class="hljs-keyword">const</span> client = dgram.createSocket(<span class="hljs-string">'udp4'</span>);
client.send(message, <span class="hljs-number">41234</span>, <span class="hljs-string">'localhost'</span>, (err) => {
  client.close();
});</code></pre>
<p>Example of sending a UDP packet composed of multip