useTransport static method

void useTransport(
  1. DVModelSyncTransport transport
)

Connects the cross-process transport. Locally published changes are forwarded outward; arriving envelopes are republished locally.

Implementation

static void useTransport(DVModelSyncTransport transport) {
  unawaited(_transportSubscription?.cancel());
  _transport = transport;
  _transportSubscription = transport.incoming.listen(_receive);
}