cheshire137 / soma-chrome

Chrome extension to listen to SomaFM web radio stations from your browser.
https://chrome.google.com/webstore/detail/somaplayer/dpcghdgbhjkihgnnbojldhjmcbieofgo?hl=en&gl=US&authuser=1
MIT License
58 stars 20 forks source link

Connects to API even when not playing #1

Closed maxkueng closed 8 years ago

maxkueng commented 10 years ago

Hi Sarah

I've implemented a connection counter on api.somascrobbler.com that shows the number of currently open connections.

While doing that, I have noticed that the extension connects to the API even when it's not playing or has never been playing. Just right after opening up Chrome.

It doesn't bother me re. API but I thought it might not the intended behaviour. I can basically see how many people who have installed your extension currently have their browser open. If it were only connected while playing you could see how many people are currently listening using your app.

lantrix commented 9 years ago

I might have a look into this and see if I can change the behaviour to connect only when a play action takes place; and disconnect when stopped.