Receiving connection updates

This commit is contained in:
James Barnsley
2016-10-28 10:48:55 +13:00
parent 696e385b7e
commit 64e5472e2c
4 changed files with 28 additions and 14 deletions

View File

@ -68,6 +68,11 @@ const PusherMiddleware = (function(){
return next(action);
break;
case 'PUSHER_CLIENT_CONNECTED':
makeRequest({ action: 'get_connections' });
return next(action);
break;
case 'PUSHER_INSTRUCT':
makeRequest({ action: action.action, data: action.data });
break;