andrewn / neue-radio

Neue Radio: Prototype connected object using web technologies
10 stars 6 forks source link

Fix RFID problem for websockets #131

Closed libbymiller closed 6 years ago

libbymiller commented 6 years ago

I was getting

pi@raspberrypi:/opt/radiodan/rde/services/rfid $ npm start

> rfid-spi@1.0.0 start /opt/radiodan/rde/services/rfid
> node index

/opt/radiodan/rde/services/rfid/lib/ws.js:4
const webSocket = ({ host }) => {
                 ^

TypeError: Cannot destructure property `host` of 'undefined' or 'null'.

I suspect this is just older code that hasn't been updated. Updated with the equivalent from downloader and it works fine.

andrewn commented 6 years ago

🤦‍♂️ Yep, you're right, I think it hadn't been updated.

Thanks for this!