title: Salesforce event subscription using JSForce
body: <p>I am trying to subscribe to events generated by the salesforce topic. I am able to receive events, <strong>my node application is not able to read events that are in the queue, &quot;generated before my node application is up and running&quot;</strong>. It's able to receive events that are generated once the node js application is up.</p>
  <p>My code looks like this</p>
  <pre><code>var jsforce = require('jsforce');
  var conn = new jsforce.Connection(loginUrl:sfHost);
  conn.login(userId, pwd, function(err: userInfo){
    if(err){return console.log(err); }
    console.log(&quot;Connected&quot;);
    conn.streaming.topic(&quot;eventName&quot;).subscribe(function(message){
      console.log(message);
    }
  }
  </code></pre>
  <p>The above code able to get data generated after the node application is up and running, It's not able to read data whatever in the queue. which are generated earlier and not read using any application.</p>
  <p>Thanks for your help and time on this.</p>