it works by checking the scratch server if im uploading data (eg opening projects, commenting ect...) and that determines whether it says im online or not :)