I have three routers, each with properly working PipeTransports. I currently have A → B connected, but want to at a later time connect A ->C.
I can call B.close and it will stop sending its rtp packets to A.
However, if I call A.connect with C’s address and port, I get an error that its already connected. If I call A.close first before trying to connect to C, I get an error that it doesn’t exist when I try to connect it to C. Is there a disconnect command or similar that allows me to connect it to a new endpoint without completely destroying it?
What is the correct way to dynamically switch pipes between routers at runtime?