The project I'm currently working on, Facebook Chat, offered a nice set of of sending a notification to all friends whenever a user comes online or goes offline .