WSS for mopidy also

This commit is contained in:
James Barnsley
2017-03-28 08:06:04 +13:00
parent 49369cee67
commit d7bcefa3b4

View File

@ -153,7 +153,7 @@ const MopidyMiddleware = (function(){
var state = store.getState();
socket = new Mopidy({
webSocketUrl: 'ws://'+state.mopidy.host+':'+state.mopidy.port+'/mopidy/ws',
webSocketUrl: 'ws'+(window.location.protocol === 'https:' ? 's' : '')+'://'+state.mopidy.host+':'+state.mopidy.port+'/mopidy/ws',
callingConvention: 'by-position-or-by-name'
});