It does polling and behaves in strange ways.
When it gets passed a subscription of the messages, it resubscribes and polls the values. This is an extremely unwanted side effect.
The subscription is a subscription for a reason. It emits values continuously. Resubscribing in an interval is an extreme anti-pattern. It treats subscriptions like a wrapper for a promise.
Take other alternatives like for example Kendo Chat:
It does polling and behaves in strange ways. When it gets passed a subscription of the messages, it resubscribes and polls the values. This is an extremely unwanted side effect. The subscription is a subscription for a reason. It emits values continuously. Resubscribing in an interval is an extreme anti-pattern. It treats subscriptions like a wrapper for a promise. Take other alternatives like for example Kendo Chat:
It subscribes to the messages and updates the UI when it receives a new event. It does not do the polling nonsense.