title: iOS + Laravel - Turn Chat Feature Into Web Socket
body: <p>I have a chat feature in my app using <code>JSQMessagesViewController</code> (<a href="https://github.com/jessesquires/JSQMessagesViewController" rel="nofollow">https://github.com/jessesquires/JSQMessagesViewController</a>). </p>
  
  <p>It makes an API call to my server every 5 seconds to get all the chat messages between two users to populate the chat view with those messages. It was suggested I turn that into a socket connection because making an API call every 5 seconds will be hard on the battery and a waste of API calls.</p>
  
  <p>How do I turn my chat feature into a socket connection with my server?</p>
  
  <p>Are there any libraries in Objective-C that will help me accomplish this? And also, I'm pretty sure that I'll have to set this up on the back end too, so are there any resources as to how to set this up on a <code>PHP</code> <code>Laravel</code> backend?</p>