The Protevus Platform: Unified Full-Stack Development
https://protevus.com
lib | ||
test | ||
.gitignore | ||
.travis.yml | ||
analysis_options.yaml | ||
LICENSE | ||
pubspec.yaml | ||
README.md |
sync
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),
),
));