title: RxJS - retry or reset
body: <p>Let's say I have a <code>sequence</code> like this:</p>
  
  <pre><code>Rx.Observable
  .interval(1000)
  .subscribe(data =&gt; {console.log(data)})
  </code></pre>
  
  <p>With <code>operators</code>, how can I '<code>restart</code>' the sequence, meaning <code>unsubscribe</code> and <code>resubscribe</code>. </p>
  
  <p>The real scenario is that the <code>sequence</code> is a socket stream, upon certain conditions we need to <code>unsubscribe</code> and <code>resubscribe</code>, kind of like the <code>retryWhen(errors)</code> works, but not with errors...would ideally be something like...<code>retryWhen(bool:Subject)</code>.</p>