angel-dart-archive / sync

moved to angel-dart/angel/packages/sync

Home Page:https://github.com/angel-dart/angel/tree/master/packages/sync

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sync

Pub build status

Easily synchronize and scale WebSockets using package: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 Angel!

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

About

moved to angel-dart/angel/packages/sync

https://github.com/angel-dart/angel/tree/master/packages/sync

License:MIT License


Languages

Language:Dart 100.0%