Use same ActorSource in multiple graphs


I am developing a WebSockets API.

One user can be connected in multiple devices.

The issue is that, each Websockets connection has its own graph; that means that a new ActorSource is materialized every time a user connects with another device.

I’d like to store a materialized ActorSource and reuse it across multiple Websockets connections/multiple graphs.

Is there any way I could do that?

Take a look at the Dynamic Stream Handling part of the docs and specifically the BroadcastHub