Context.routeActivity(): Promise<boolean>
Manually routes an activity to the appropriate inbox listener.
It is useful for routing an activity that is not received from the network, or for routing an activity that is enclosed in another activity.
Note that the activity will be verified if it has Object Integrity Proofs or is equivalent to the actual remote object. If the activity is not verified, it will be rejected.
recipient: string | null
The recipient of the activity. If it is null
,
the activity will be routed to the shared inbox.
Otherwise, the activity will be routed to the personal
inbox of the recipient with the given identifier.
activity: Activity
The activity to route. It must have a proof or
a dereferenceable id
to verify the activity.
options: RouteActivityOptions
Options for routing the activity.