Rxjs Observable publish refcount vs share

The two com­mon ways to share data com­ing from an observ­able is via the publish().refCount() and share() meth­ods. At first glance, they might seem sim­i­lar but there one dif­fer­ence between the two tech­niques that…