added 'connected_state', to monitor online presence