The Protevus Platform: Unified Full-Stack Development https://protevus.com
Find a file
2018-11-15 12:03:03 -05:00
lib 2.0.0 2018-11-15 12:03:03 -05:00
test 2.0.0 2018-11-15 12:03:03 -05:00
.gitignore 2.0.0 2018-11-15 12:03:03 -05:00
.travis.yml 1.0.0 2017-08-08 17:04:36 -04:00
analysis_options.yaml 2.0.0 2018-11-15 12:03:03 -05:00
CHANGELOG.md 2.0.0 2018-11-15 12:03:03 -05:00
LICENSE Initial commit 2017-08-08 16:08:37 -04:00
pubspec.yaml 2.0.0 2018-11-15 12:03:03 -05:00
README.md 1.0.0 2017-08-08 17:04:36 -04:00

sync

Pub build status

Easily synchronize and scale WebSockets using package:pub_sub.

Usage

This package exposes PubSubWebSocketSynchronizer, 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 Angel!

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