项目作者: angel-dart-archive

项目描述 :
moved to angel-dart/angel/packages/sync
高级语言: Dart
项目地址: git://github.com/angel-dart-archive/sync.git
创建时间: 2017-08-08T20:08:37Z
项目社区:https://github.com/angel-dart-archive/sync

开源协议:MIT License

下载


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!

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