Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

docs: dgram client should be closed in the callback

  • Loading branch information...
darashi authored and bnoordhuis committed Nov 10, 2011
1 parent 74f3904 commit 426298c8c1c0d5b5224ac3658c41e7c2a3fe9377
Showing with 3 additions and 2 deletions.
  1. +3 −2 doc/api/dgram.markdown
@@ -53,8 +53,9 @@ Example of sending a UDP packet to a random port on `localhost`;
var dgram = require('dgram');
var message = new Buffer("Some bytes");
var client = dgram.createSocket("udp4");
client.send(message, 0, message.length, 41234, "localhost");
client.send(message, 0, message.length, 41234, "localhost", function(err, bytes) {

**A Note about UDP datagram size**

0 comments on commit 426298c

Please sign in to comment.
You can’t perform that action at this time.