readme
This commit is contained in:
parent
971beb92a6
commit
f5129b6882
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
Easily synchronize and scale WebSockets using package:pub_sub.
|
Easily synchronize and scale WebSockets using package:pub_sub.
|
||||||
|
|
||||||
# Usage
|
# Usage
|
||||||
This package exposes `PubSubWebSocketSynchronizer`, which
|
This package exposes `PubSubSynchronizationChannel`, which
|
||||||
can simply be dropped into any `AngelWebSocket` constructor.
|
can simply be dropped into any `AngelWebSocket` constructor.
|
||||||
|
|
||||||
Once you've set that up, instances of your application will
|
Once you've set that up, instances of your application will
|
||||||
|
@ -14,7 +14,7 @@ to scale a real-time application with Angel!
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
await app.configure(new AngelWebSocket(
|
await app.configure(new AngelWebSocket(
|
||||||
synchronizer: new PubSubWebSocketSynchronizer(
|
synchronizationChannel: new PubSubSynchronizationChannel(
|
||||||
new pub_sub.IsolateClient('<client-id>', adapter.receivePort.sendPort),
|
new pub_sub.IsolateClient('<client-id>', adapter.receivePort.sendPort),
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
Loading…
Reference in a new issue