pair static method
Two links joined back to back, in memory.
For a node in the same process as its hub — the host of a browser-hosted room — and for tests. Binary frames are copied on the way across, because a hub rewrites a sample frame's slot in place and a sender is free to reuse its buffer; over a real socket neither side can see the other's memory, and this keeps it that way.
Implementation
static (HubLink, HubLink) pair() {
final a = _MemoryHubLink();
final b = _MemoryHubLink();
a._peer = b;
b._peer = a;
return (a, b);
}