Use `notify` for broadcasting table updates

The `request` method is not suitable for deliverying these updates,
 since it may cause an exception if any client disconnects in the
 meantime.
This commit is contained in:
Simon Binder 2023-01-02 23:35:10 +01:00
parent e52836694c
commit 4723d8474e
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class ServerImplementation implements DriftServer {
} else if (payload is NotifyTablesUpdated) {
for (final connected in _activeChannels) {
if (connected != comms) {
connected.request(payload);
connected.notify(payload);
}
}
} else if (payload is RunTransactionAction) {