Skip to main content

deltasync_transport 1.0.0 copy "deltasync_transport: ^1.0.0" to clipboard
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 DeltaTransport to send envelopes and expose an incoming stream.
  • Implement AcknowledgingDeltaTransport when the protocol supports a response confirming remote application and persistence.
  • Use DeltaEnvelope and DeltaAcknowledgement JSON 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.

0
likes
0
points
939
downloads

Publisher

unverified uploader

Weekly Downloads

Transport abstractions for DeltaSync.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

deltasync_core

More

Packages that depend on deltasync_transport