Skip to content
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

Create ability to have app specific signals #12

Open
rreinhardt9 opened this issue Jul 16, 2020 · 0 comments
Open

Create ability to have app specific signals #12

rreinhardt9 opened this issue Jul 16, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@rreinhardt9
Copy link
Contributor

To be honest, I'm not even sure what this means yet 😆 but here are a few use cases that have been on my mind.

Use Cases

The first is just a simple ping signal. You've set up your app and you want to send it a ping to see if it's receiving messages correctly. Maybe in the host app you could provide a button to trigger this ping signal. It goes just to the app it was triggered for.

App specific lifecycle events is another. For example, when the app is installed, when it has errors, when a payment is processed, etc. These are things we would only send to the specific app.

There may also be app specific signals that we want to create. For example, take an app that you want to send specific "content" to from your host app. I don't want to share the content with all apps, I just want to notify this specific app. Maybe there is a button in the host app UI for "send this to X app" and when it's clicked, we send a signal to the specific app that the content was sent to it.

Solutions

I'm not sure on solutions yet.

It could be a special kind of signal? Maybe instead of inheriting from Demux::Signal you inherit from Demux::AppSignal and everything in that signal goes to a specific app?

Maybe it's a special send method in the action? So instead of calling send in the action you would call something like send_to_app :ping, app_id: 4

Maybe it's something that's not considered here yet.

@rreinhardt9 rreinhardt9 added the enhancement New feature or request label Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant