MariusRumpf / node-lifx

Node.js implementation of the LIFX LAN protocol :bulb:
MIT License
144 stars 28 forks source link

Multiple node-lifx client instances on the same ip address #49

Open weedgrease opened 7 years ago

weedgrease commented 7 years ago

Hey Marius, Thanks for your hard work on this awesome library. I have a couple projects that use your package but I get an error that the port is taken when I spin up another project using the same package.

When I change the port in Client.init(), it starts fine but never receives any messages or events. Can only one instance consume messages from the bulbs on port 56700?

MariusRumpf commented 7 years ago

Hey, a instance of the library does take control over the lifx port 567000, which cannot be done twice correct. In order to archive multiple instances there must be some abstraction layer on top of this module, but this is out of the range of this module I think.

MariusRumpf commented 7 years ago

With PR #59 it is possible to run multiple node-lifx client instances on the same ip address.

ristomatti commented 7 years ago

@kevingelion I've merged @jasoncodes PR #59. Could you test if it solves the issue for you?