From f247a7664934b45397f28c04573174dee6930694 Mon Sep 17 00:00:00 2001 From: Joebayld Date: Thu, 11 Jan 2018 16:05:02 -0500 Subject: [PATCH] Add broadcast support to socket --- drivers/artnet.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/artnet.js b/drivers/artnet.js index b17dee3..54814e8 100644 --- a/drivers/artnet.js +++ b/drivers/artnet.js @@ -21,6 +21,9 @@ function EnttecODE(device_id, options) { self.host = device_id || '127.0.0.1' self.port = options.port || 6454 self.dev = dgram.createSocket('udp4') + self.dev.bind(function() { + self.dev.setBroadcast(true) + }) self.start() }