platform/packages/sync
2024-06-23 12:09:26 +08:00
..
example Fixed linter warnings 2022-11-18 21:52:12 +08:00
lib Updated sync 2021-09-12 10:52:19 +08:00
test Updated to SDK 2.16.x 2022-04-23 12:21:39 +08:00
analysis_options.yaml Updated sync 2021-09-12 10:52:19 +08:00
AUTHORS.md Merged from sdk-2.12.x_nnbd 2021-06-20 20:37:20 +08:00
CHANGELOG.md Updated to support SDK 3.3.0 2024-06-23 12:09:26 +08:00
LICENSE Updated sync 2021-09-12 10:52:19 +08:00
melos_angel3_sync.iml Added melos 2022-03-19 09:37:28 +08:00
pubspec.yaml Updated to support SDK 3.3.0 2024-06-23 12:09:26 +08:00
README.md Updated repository links 2023-12-25 11:45:10 +08:00

Angel3 Sync

version Null Safety Gitter License

Easily synchronize and scale WebSockets using belatuk_pub_sub.

Usage

This package exposes PubSubSynchronizationChannel, which can simply be dropped into any AngelWebSocket constructor. Once you've set that up, instances of your application will automatically fire events in-sync. That's all you have to do to scale a real-time application with Angel3!

await app.configure(AngelWebSocket(
    synchronizationChannel: PubSubSynchronizationChannel(
        pub_sub.IsolateClient('<client-id>', adapter.receivePort.sendPort),
    ),
));