Nicer status

This commit is contained in:
James Barnsley
2017-02-21 08:35:24 +13:00
parent 60290db452
commit ba5ef316f4
8 changed files with 127 additions and 23 deletions

View File

@ -9,6 +9,7 @@ export default function reducer(pusher = {}, action){
case 'PUSHER_CONNECTED':
return Object.assign({}, pusher, {
connected: true,
connecting: false,
connection_id: action.connection_id,
username: action.username
});