node-lifx
node-lifx copied to clipboard
Multiple node-lifx client instances on the same ip address
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?
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.
With PR #59 it is possible to run multiple node-lifx client instances on the same ip address.
@kevingelion I've merged @jasoncodes PR #59. Could you test if it solves the issue for you?