title: Socket.io private message notification
body: <p>Hey there stackoverflow!
  I am developing a community with Laravel3 right now I am trying to achieve some Facebook style private messaging.</p>
  
  <p>I did the coding part, but me and my friends are so agree about adding real-time message notifications. I did my research, I cannot say I find a good article about this, some of them starts with <code>oh you know everything about matrix so lets socketsocketsocketsocketsocket</code> I am so confused how to start, where to start, what is this anyway, many of this say <code>go with MongoDB never use MySQL again.</code> Dude what the heck? I am using MySQL I created a nice private message system in Laravel, I want to add real-time notify!</p>
  
  <p>All I want to do is</p>
  
  <ol>
  <li>UserA sends a message to UserB</li>
  <li>Message inserted into privmsg table.</li>
  <li>Sockets or whatever you suggest, tells UserB's browser there is +1 new message from UserA</li>
  <li>UserB sees there is one unread message without refresh his page and click to read it .</li>
  </ol>
  
  <p>How can I achieve this? Socket.io best choice for that? if so how can I use it? any snippets would be so great! or tutorial about my situation :)</p>
  
  <p>I would really grateful</p>