You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 fromDemux::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 likesend_to_app :ping, app_id: 4
Maybe it's something that's not considered here yet.
The text was updated successfully, but these errors were encountered: