Detecting a break in pipe transport

I have two nodes A and B, both running mediasoup server. I’m able to set up a pipe transport A->B and get streams across. However, if I kill the mediasoup server process on B, then A’s pipe transport never reports being closed. I have tried both, transport.on('connectionstatechange', cb) and'close', cb) and neither event is triggered.

Is there a way to detect when a pipe transport breaks? Am I thinking about it all wrong?

No, there is not since it’s just a RTP transport without ICE. So you need your own signaling system between both servers and some kind of ping/pong mechanism between them.