Closed rklaehn closed 3 months ago
In retrospect I think this is not a good idea. The connection identity should not matter that much. How I think this should be solved is to create a scope that is a long-running bidi rpc interaction, and then attach things to this scope when needed. I am going to implement this in iroh.
You should be able to associate a value with a connection so that it gets dropped if the connection gets dropped. Or in general the ability to do some sort of cleanup on connection loss.