()
| 55 | * @returns [clientTransport, serverTransport] |
| 56 | */ |
| 57 | export function createLinkedTransportPair(): [Transport, Transport] { |
| 58 | const a = new InProcessTransport() |
| 59 | const b = new InProcessTransport() |
| 60 | a._setPeer(b) |
| 61 | b._setPeer(a) |
| 62 | return [a, b] |
| 63 | } |
| 64 |