Implement selfOnline and selfOffline