publishAdvancedEventAsync

abstract suspend fun publishAdvancedEventAsync(eventName: String, context: List<String> = mutableListOf()): Result

Publishes an ADVANCED event with the given selector and context.

Return

The result of the operation.

Parameters

eventName

The event name.

context

The list of context elements.


abstract suspend fun publishAdvancedEventAsync(eventName: String, context: Map<String, String>): Result

Publishes an ADVANCED event with the given event name and object context. Use this variant for rules that select a top level key of the context instead of an array position.

Return

The result of the operation.

Parameters

eventName

The event name.

context

The context as a map of top level keys to values.