Hi,
First I got phea working and it's awesome, thank you for making it 😃
I'm building an API that will be able start / stop entertainment sync. However, Phea throws an error when I'm closing a stream using phea.stop().
Is there any particular reason I'm not understanding for throwing an error when stopping a stream ?
Related code is the following
|
.on("close", () => { |
|
let msg = new Error("PHEA - DTLS: Socket Closed"); |
|
msg.code = 'PHEA.HUE_DTLS_CONTROLLER.SOCKET_CLOSED'; |
|
throw msg; |
|
}); |
Thanks
Hi,
First I got phea working and it's awesome, thank you for making it 😃
I'm building an API that will be able start / stop entertainment sync. However, Phea throws an error when I'm closing a stream using
phea.stop().Is there any particular reason I'm not understanding for throwing an error when stopping a stream ?
Related code is the following
node-phea/src/hue-controller.js
Lines 142 to 146 in 101dd62
Thanks