RemoteMessageExtensions extension
Extension for sending remote messages to the Horda backend.
Provides convenient BuildContext methods for sending commands and events to the Horda backend. These methods enable client-server communication with type-safe response handling.
- on
Methods
-
callEntity<
E extends RemoteEvent> ({required String name, required EntityId id, required RemoteCommand cmd, required FromJsonFun< E> fac}) → Future<E> -
Available on BuildContext, provided by the RemoteMessageExtensions extension
Sends a command to an entity and waits for a typed response event. -
runProcess(
RemoteEvent event) → Future< ProcessResult> -
Available on BuildContext, provided by the RemoteMessageExtensions extension
Dispatches a remote event and waits for the backend flow processing result. -
sendEntity(
{required String name, required EntityId id, required RemoteCommand cmd}) → void -
Available on BuildContext, provided by the RemoteMessageExtensions extension
Sends a command to an entity without waiting for a response.