Tinkering with /ws

This commit is contained in:
James Barnsley
2017-02-16 19:51:49 +13:00
parent 58037c8c36
commit b53ba2ca6d
5 changed files with 25 additions and 31 deletions

View File

@ -95,9 +95,9 @@ const PusherMiddleware = (function(){
username: Math.random().toString(36).substr(2, 9)
}
if( state.pusher.username ) connection.username = state.pusher.username;
socket = new WebSocket(
'ws://'+state.mopidy.host+':'+state.pusher.port+'/pusher',
'ws://'+state.mopidy.host+':'+state.mopidy.port+'/iris/ws',
[ connection.clientid, connection.connectionid, connection.username ]
);