ideas: use .createStream() at both ends.
dominictarr opened this issue · 2 comments
dominictarr commented
I've been finding my self building symmetrical systems recently, where either end may initiate a connection, and the way that mux-demux expects one end to wait for a connection and the other to create the connection to be arkward.
I want to beable to do createStream({id: whatever})
from both ends and get a stream that is connected.
This would basically mean being able to override the generated ID, so that you can choose the ID of the stream.
and also, i think, ignoring the error where you recieve a CreateStream message, when you already have that stream...
juliangruber commented
That would be way more intuitive. Order shouldn't matter.
Raynos commented
+1 for this.
But still have the old interface as well