-
-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
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
PubSub instanceable #6
Comments
PubSubJS can be compared to a message queue, there is no need to have more than one instance. Having more than one instance will create confusion and will be cumbersome, as you'd have to pass that instance around. |
Maybe I didn't get it, but
Why not give every publisher its own PubSub as suggested by @maltmann , instead of a global PubSub singleton? Thanks for the nice lib anyway! |
@mroderick - while using a global singleton is clearly simpler and more convenient, having the option for specific instances is a good idea. For example, if there are a couple of apps in the same browser, etc. so +1 for instantiation. |
@KutnerUri if that's your need, then you should be using a library that supports that. |
Two ways to access the PubSub component:
The text was updated successfully, but these errors were encountered: