memorySocketPair function
A pair of connected in-memory sockets (client side, server side) — used by the in-process fake and tests.
Implementation
(MessageSocket client, MessageSocket server) memorySocketPair({
String? protocol,
}) {
final a = _MemorySocket(protocol);
final b = _MemorySocket(protocol);
a._peer = b;
b._peer = a;
return (a, b);
}