title: Using AFIncrementalStore with a WebSockets Application
body: <p>I'm attempting to adopt AFIncrementalStore for a Mac app that talks to App.Net. Unlike the example applications that come with the framework, I'm using the streaming APIs, with a websocket connection. For this I was using SocketRocket. These parts are working fine: I'm able to set up a request connection to ADN and get a connection ID back. It's this connection ID I supply to the later requests to ADN APIs.</p>
  
  <p>My problem is that the Core Data stack is initialized and firing before I get my first connection ID back from ADN. I'm not sure how to handle this situation.</p>
  
  <p>Currently, I have this code in my app delegate:</p>
  
  <pre><code>self.socketConnection = [[MUNConnectionManager alloc] init];
  self.socketConnection.delegate = self;
  </code></pre>
  
  <p>My connection manager implements a delegate that calls back to the app delegate when the connection ID has been received:</p>
  
  <pre><code># pragma mark MUNConnectionManager delegate method
  - (void)didReceiveConnectionId:(NSString*)connectionId
  {
      self.connectionId = connectionId;
  }
  </code></pre>
  
  <p>So once this connection ID is received, that's when I'd like to boot AFIncrementalStore into action. But this is perhaps a full second or so after launch, and my AFIncrementalStore client is already crapping out because it doesn't have that connection ID.</p>
  
  <p>Any suggestions appreciated!</p>