2 files changed, 16 insertions(+), 0 deletions(-)

A => README
A => index.js
A => README +1 -0
@@ 0,0 1,1 @@ 
+Listens at UDP localhost port 8125 and echoes back whatever it received.

          
A => index.js +15 -0
@@ 0,0 1,15 @@ 
+const dgram = require('dgram');
+const server = dgram.createSocket('udp4');
+
+server.on('message', (message) => {
+  console.log(message.toString());
+});
+
+server.on('listening', () => {
+  console.log('listening');
+});
+
+server.bind({
+  port: 8125,
+  address: 'localhost',
+});