enleur
03/12/2018, 6:01 PMConflatedBroadcastChannel
for broadcasting?spierce7
03/12/2018, 6:51 PMConflatedBroadcastChannel
is similar to an AsyncSubject
. What if I wanted something similar to a PublishSubject
?enleur
03/12/2018, 7:44 PMPublishSubject
actually does, but in ConflatedBroadcastChannel
when you publish messages and there are no subscribers, these messages will be lost. Subscribers will get only messages that were posted after their subscriptionspierce7
03/12/2018, 8:46 PMPublishSubject
then.enleur
03/12/2018, 8:52 PMdave08
03/12/2018, 9:33 PMPublishSubject
== BroadcastChannel(0)
, BehaviorSubject
== ConflatedBroadcastChannel
(which has a buffer of one, which is the latest value of the channel, but there's an open pull request to make this even better...)spierce7
03/12/2018, 10:20 PMdave08
03/13/2018, 3:14 AM