Tidying connections; Move into indexed connections

This commit is contained in:
James Barnsley
2017-02-18 22:25:26 +13:00
parent b1af53fed9
commit 252d031238
2 changed files with 3 additions and 6 deletions

View File

@ -89,7 +89,7 @@ const PusherMiddleware = (function(){
);
socket.onopen = () => {
store.dispatch({ type: 'PUSHER_CONNECTED', connection: connection });
store.dispatch({ type: 'PUSHER_CONNECTED', connection_id: connection.connection_id });
store.dispatch({ type: 'PUSHER_SET_USERNAME', username: connection.username });
};