title: iOS Client connecting to server using socketrocket results in "Stream end encountered"
body: <pre><code>NSString *urlString = @"ip address";
  self.webSocket = [[SRWebSocket alloc] initWithURLRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:urlString]]];
  self.webSocket.delegate = self;
  [self.webSocket open];
  </code></pre>
  
  <p>Here <code>didCloseWithCode</code> is called with reason <code>Stream end encountered</code>.</p>
  
  <p>Any ideas about what might go wrong?</p>