Cloning `WebSocketStream`s
UE2020 opened this issue · 1 comments
UE2020 commented
Is it possible to share multiple owned clones of one stream?
sdroege commented
Not directly, but you can put them into an Arc
and async Mutex
to achieve that, or spawn a task that reads/writes to a channels and is filled/emptied from another place, or many other options.
There's no reason to put the additional complexity here if it can be built on top quite easily.