respond to messages with pre-selected binary (and change id)

This commit is contained in:
AJ ONeal 2017-10-09 13:09:32 -06:00
parent e16e7efe9e
commit ed28de4e59
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@
(function () {
'use strict';
var cli = { port: 65053, address: null, udp6: false, bin: process.argv[2] };
var cli = { port: 65153, address: null, udp6: false, bin: process.argv[2] };
var dgram = require('dgram');
var server = dgram.createSocket({
type: cli.udp6 ? 'udp6' : 'udp4'
@ -41,5 +41,6 @@ server.bind({
, address: cli.address
});
server.on('listening', handlers.onListening);
server.on('message', handlers.onMessage);
}());