crdt_socket_sync 0.6.0 copy "crdt_socket_sync: ^0.6.0" to clipboard
crdt_socket_sync: ^0.6.0 copied to clipboard

Conflict-free replicated data type (CRDT) - Socket sync implementation provided in dart

example/lib/main.dart

import 'package:crdt_socket_sync_example/src/gzip_compression.dart';
import 'package:crdt_socket_sync_example/src/run.dart' as server;

void main(List<String> args) async {
  // Pass `--compress` to serve every message through gzip. Clients must then
  // connect with the matching compressor (see README + client_example
  // `--dart-define=USE_COMPRESSION=true`), because compression is symmetric.
  final compress = args.contains('--compress');

  await server.run(
    verbose: false,
    compressor: compress ? const GzipCompression() : null,
  );
}
2
likes
160
points
249
downloads

Documentation

API reference

Publisher

verified publishermattiapispisa.it

Weekly Downloads

Conflict-free replicated data type (CRDT) - Socket sync implementation provided in dart

Homepage
Repository (GitHub)
View/report issues

Topics

#crdt #socket #sync #fugue #hlc

License

MIT (license)

Dependencies

crdt_lf, hlc_dart, meta, web_socket_channel

More

Packages that depend on crdt_socket_sync