examples icon indicating copy to clipboard operation
examples copied to clipboard

As a Developer, I want to Get Events so that My App Can React In Real Time

Open justinmchase opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. I'm looking at the Pub/Sub example and its pretty interesting but its just calling back to a subscriber class. If a user is running an app in a browser from a cannister it seems like it would need to poll the the subscriber function to look for updates. That's going to cost cycles and may infrequently change.

Describe the solution you'd like I'd like to see an api where you can subscribe to an event published by an actor and an active socket connection is established. The actor could then publish a message to that event and matching subscribers would receive a message pushed from dfx through the socket in real-time.

Describe alternatives you've considered Theoretically it could do something like support outbound webhook calls instead of requiring an active socket... that sounds worse for users behind firewalls but better for backend to backend. Maybe both would be good :)

Additional context I'm new, maybe this already exists but I didn't see it in the docs. Pushing messages out of the system seems like a pretty important foundational piece, other systems support it in various ways.

justinmchase avatar May 12 '21 05:05 justinmchase

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] avatar Jun 29 '24 01:06 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Jul 13 '24 01:07 github-actions[bot]