From ed28de4e59756644a182ab08f3f99074c69d3881 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 9 Oct 2017 13:09:32 -0600 Subject: [PATCH] respond to messages with pre-selected binary (and change id) --- bin/debugd.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/debugd.js b/bin/debugd.js index c8ae8be..8d48aaa 100644 --- a/bin/debugd.js +++ b/bin/debugd.js @@ -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); }());