platform/packages/sync
2022-04-24 09:42:33 +08:00
..
example Updated to SDK 2.16.x 2022-04-23 12:21:39 +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 SDK 2.16.x 2022-04-23 12:21:39 +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 Published 6.0.0 2022-04-24 09:42:33 +08:00
README.md Updated license link 2021-09-12 12:33:41 +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),
    ),
));