Skip to content

Commit

Permalink
Use notify for broadcasting table updates
Browse files Browse the repository at this point in the history
 The `request` method is not suitable for deliverying these updates,
 since it may cause an exception if any client disconnects in the
 meantime.
  • Loading branch information
simolus3 committed Jan 2, 2023
1 parent e528366 commit 4723d84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drift/lib/src/remote/server_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4723d84

Please sign in to comment.