title: How to create Hot Observable in RxJS 5
body: <p>I use RxJS 4 to create Hot Observable like describe in the <a href="https://github.com/Reactive-Extensions/RxJS/blob/master/doc/gettingstarted/creating.md#cold-vs-hot-observables" rel="noreferrer">official documentation</a></p>
  
  <p>But the <a href="https://github.com/ReactiveX/rxjs/blob/master/MIGRATION.md" rel="noreferrer">RxJS 5 migration guid</a> doesn't explain how to create Hot Observable.</p>
  
  <pre><code>const source = Observable.create((observer) =&gt; {
    asynCall((data) =&gt; {
      observer.onNext(data)
    })
  })
  const published = source.publish()
  published.connect()
  published.subscribe((data) =&gt; {
    console.log(data)
  })
  </code></pre>
  
  <p>With Rx5 I've got the following error:</p>
  
  <p>Uncaught TypeError: source.publish is not a function(…)</p>