Action
Descriptive full API of an Action.
Properties
rules: Array<function(context: Context)>
execute: function(context: Context)
criteriaBuilder: CriteriaBuilder
responseHandler: ResponseHandler
errorHandler: ErrorHandler
Methods
.io() -> function(socket, packet)
.io() -> function(socket, packet)
is used to transform an action on a socket middleware. This way the action will be invoked if a client-socket emit on the proper route. To understand the process of event handling, you can refer to EventHandler Documentation.