sync

Pubbuild status

Easily synchronize and scale WebSockets using package:pub_sub.

Usage

This package exposes PubSubSynchronizationChannel, whichcan simply be dropped into any AngelWebSocket constructor.

Once you've set that up, instances of your application willautomatically fire events in-sync. That's all you have to doto 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. ));