Node JS Automatically get update when a user goes live

If you don’t mind, may I see the portion of code that runs the check?