node-lifx icon indicating copy to clipboard operation
node-lifx copied to clipboard

Multiple node-lifx client instances on the same ip address

Open weedgrease opened this issue 7 years ago • 3 comments

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?

weedgrease avatar Dec 04 '16 19:12 weedgrease

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 avatar Jan 04 '17 09:01 MariusRumpf

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

MariusRumpf avatar Oct 05 '17 19:10 MariusRumpf

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

ristomatti avatar Oct 06 '17 19:10 ristomatti