deltasync_transport 1.0.0
deltasync_transport: ^1.0.0 copied to clipboard
Transport abstractions for DeltaSync.
deltasync_transport #
Pure Dart transport contracts and versioned envelopes for DeltaSync.
Add deltasync_transport: ^1.0.0 to your dependencies.
- Implement
DeltaTransportto send envelopes and expose an incoming stream. - Implement
AcknowledgingDeltaTransportwhen the protocol supports a response confirming remote application and persistence. - Use
DeltaEnvelopeandDeltaAcknowledgementJSON codecs at network boundaries. Sender, recipient, ACK stage and change IDs are validated explicitly.
With SyncEngine, route received envelopes through receiveEnvelope. With
IncomingAcknowledgingDeltaTransport, the engine sends the ACK through the
adapter after commit; otherwise send the returned ACK after the future succeeds.
An ACK for receipt
alone must not remove pending changes; outbox removal requires the expected
peer's appliedAndPersisted acknowledgement.
This package supplies no HTTP/WebSocket server, authentication, peer discovery, encryption or production network policy. Consumers own those choices and retry policy. See a small transport adapter in the facade example and an existing application in the Compass fork.