SpacetimeDB icon indicating copy to clipboard operation
SpacetimeDB copied to clipboard

[PROPOSAL] Design for an event callback on clients which is called for all transactions and is not specific to a row or a reducer

Open cloutiertyler opened this issue 11 months ago • 1 comments

The BitCraft team is implementing IMC for BitCraft and they need a way for their relay server to subscribe to all "transactions". Right now they have the option to either add a row callback to be called once per row when any transaction happens, or a reducer callback to be called when a specific reducer happens.

However, there is no API to add an callback which is run once per transaction for all transactions. This is useful for clients like the relay server which would like to reason about whole transactions.

A request for a proposal for adding such an API is hereby submitted.

cloutiertyler avatar Jan 21 '25 17:01 cloutiertyler

I'd like to prioritize this relatively highly, because it will eliminate the recurring pattern of BitCraft asking for some weirdly specific callback that they need for an individual feature.

gefjon avatar Mar 12 '25 20:03 gefjon