SpacetimeDB
SpacetimeDB copied to clipboard
Extend `ClientConnectionSender` with flag `--light-tx-update`
Provide a lighter version of TransactionUpdate if the flag is passed:
pub enum ServerMessage<F: WebsocketFormat> {
InitialSubscription(InitialSubscription<F>),
TransactionUpdate(TransactionUpdate<F>),
IdentityToken(IdentityToken),
OneOffQueryResponse(OneOffQueryResponse<F>),
TransactionUpdateLight(TransactionUpdateLight<F>),
}
pub struct TransactionUpdateLight<F: WebsocketFormat> {
request_id: u32,
/// The status of the transaction. Contains the updated rows, if successful.
pub status: DatabaseUpdate<F>,
}