We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The caching docs should include more information, especially around the effects of channel disposal on any cached messages.
e.g. This is how caching works:
const broker = messagebroker<IChannels>(); broker.create('channel', { replayCacheSize: 2 }).publish('Jupiter'); broker.get('channel').subscribe(message => console.log(message)); // expect: Jupiter
If you were to dispose of that channel before subscribing, then it behaves like this:
const broker = messagebroker<IChannels>(); broker.create('channel', { replayCacheSize: 2 }).publish('Jupiter'); broker.dispose('channel'); broker.get('channel').subscribe(message => console.log(message)); // expect: nothing...
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The caching docs should include more information, especially around the effects of channel disposal on any cached messages.
e.g.
This is how caching works:
If you were to dispose of that channel before subscribing, then it behaves like this:
The text was updated successfully, but these errors were encountered: