jangxx / node-magichome

An incomplete implementation of the functionality of the "Magic Home" app. Partially a port of https://github.com/Danielhiversen/flux_led to Node.js
ISC License
124 stars 26 forks source link

Uncaught TypeError: dgram.createSocket is not a function #19

Closed HaydenSookchand closed 5 years ago

HaydenSookchand commented 5 years ago

When attempting to discover devices, I get this error. Any idea what this may be?

jangxx commented 5 years ago

My best guess is, that you are trying to use this library outside of Node. Since it relies on built-in libraries like net and dgram you can't use it with browserify or any other system which targets a webbrowser.

jangxx commented 5 years ago

Closing due to inactivity.