title: Example of WebSocket Usage in Objective-C
body: <p>I've been trying for some time now, unsuccessfully, to connect to a local server via WebSockets in Objective-C (specifically, iPhone) code.  I have tried the following three libraries, all with no success:</p>
  
  <p><a href="http://code.google.com/p/unitt/wiki/UnittWebSocketClient" rel="nofollow">http://code.google.com/p/unitt/wiki/UnittWebSocketClient</a></p>
  
  <p><a href="https://github.com/zootreeves/iOS-WebSockets" rel="nofollow">https://github.com/zootreeves/iOS-WebSockets</a></p>
  
  <p>and zimt.</p>
  
  <p>With zimt, I was unable to even include the files in my project without encountering any errors.</p>
  
  <p>I was wondering if someone could please post some sample code that just simply connects to a server and performs a successful handshake/login.  It would be great if I could be given working code to finally determine if the issue is the way the server is set up or not.</p>
  
  <p>I greatly appreciate any help, thank you!</p>