Create and use custom events

In the documentation you speak about events.

https://docs.convergence.io/guide/overview/events-and-observables.html

I saw we can listen specific event relative to data.

My question is, can we emit ourself custom event between users for custom needs using convergence ?

Somewhat, yes. One way you could go about doing this is through the activity subsystem. You could, for instance, set some state data on a particular activity (which can itself be shared between any number of users in the system), and listen to state change events, which there are a handful for.

Ok. Seems good :slight_smile:

We have contemplated adding a generalized event bus, but to date we haven’t gotten concrete use cases to prioritize that.

1 Like