title: Send user online/offline status to Laravel with socket.io
body: <p>I have a chat app as real-time with socket.io. I want to save online/offline status on the database in Laravel back-end. For online status I don't have problem, but for offline status, I don't have any plan. My front-end framework is Angularjs 1.x and use JWT for authentication.</p>
  
  <p>As matter of fact I want to save offline user status in database when user close browser of change route and <code>emit</code> all users from these user's status?</p>