Skip to main content

externalEventHandler

The parameter externalEventHandler is a method injected inside the store, allowing you to catch every action send inside the directline channel. This method has two entry parameters : the first one is the current action, the second one a dispatch method used to send a specific action inside the directline channel. This method returns a boolean that indicates if the current action should be stopped (true) or should continue as expected (false).

NameIncoming parameterReturn parametertypeDescription
actionYesNocomplete listCurrent action in directline
dispatchYesNoInternal method for action dispatch in botframework
-NoYesbooleanMethod's return, true to stop the execution of the curretn action, false otherwise