mirror of https://github.com/AMT-Cheif/drift.git
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:
parent
e52836694c
commit
4723d8474e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue