Currently, the subscribe method internally adds the sub & its pending state to a queue, but it doesn't emit anything, so nothing else in the app knows we're trying to subscribe. This would be useful for showing a loading UI on recently mounted components.
I propose emitting a subscribeRequest event at the bottom of SCSocket.prototype.subscribe. Will be happy to submit a PR & update docs.
Currently, the
subscribe
method internally adds the sub & its pending state to a queue, but it doesn't emit anything, so nothing else in the app knows we're trying to subscribe. This would be useful for showing a loading UI on recently mounted components.I propose emitting a
subscribeRequest
event at the bottom ofSCSocket.prototype.subscribe
. Will be happy to submit a PR & update docs.