-
-
Notifications
You must be signed in to change notification settings - Fork 145
Description
Don't know if this is related to Sonos or the code
Expected Behavior
Have an app running on 192.168.12.100
this app listens on sonos events and does what it is expected to do.
Create another app srunning on the same host and try to listen to the sonos device
Start the listener so you can respond to events
Current Behavior
when the second app is started the following error is generated:
Listen for sonos events. CTRL + C to exit
node:events:371
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE: address already in use :::4000
at Server.setupListenHandle [as _listen2] (node:net:1319:16)
at listenInCluster (node:net:1367:12)
at Server.listen (node:net:1454:7)
at SonosListener.startListener (/home/gerrit/workspace/code/dev/betterspotv2/node_modules/sonos/lib/events/adv-listener.js:67:25)
Possible Solution
Sample code or executed example
- use script: https://github.com/bencevans/node-sonos/blob/master/examples/events.js
- (replace '../' with 'sonos'
4.have one sonos listener already running
5 run script
6 error message
Versions (and Environment)
Node version:
latest
node-sonos version:
latest
OS:
UBUNTU