MPD.js
MPD.js copied to clipboard
TypeError: null is not an object (evaluating '_private.socket.send')
I found a problem when submitting requests too quickly. In my case I'm using mpd.setVolume() to increase the volume. My frontend has a volume increase button. When I click the button really quickly, I get this message on the frontend of another client, which is receiving the StateChanged events. The first 3-5 changes go through, after that I get the error and the connection seems to be dropped(?).
I'm submitting this to check, if it's a known issue. I'll have a look next weekend, if I can spot and fix the bug.
TypeError: null is not an object (evaluating '_private.socket.send')
sendString - mpd.js: 1068
processComandQueue - mpd.js: 1256
(anonymous function) - mpd.js: 1173