-
Notifications
You must be signed in to change notification settings - Fork 51
Closed
Labels
flag: needs discussionIssues which needs discussion before implementation.Issues which needs discussion before implementation.type: featureIssues related to new features.Issues related to new features.
Description
Description
Add interceptor support on event level.
Proposed solution
Add @UserInterceptor()
decorator that accepts one or more InterceptorInterface
classes which would be resolved from the event container.
The interceptor should receive the socket event context and a next function. The interceptors return value should be used for the values of @EmitOnSuccess()
and @EmitOnFail()
.
Multiple interceptors should be executed in the same order as they were provided.
Metadata
Metadata
Assignees
Labels
flag: needs discussionIssues which needs discussion before implementation.Issues which needs discussion before implementation.type: featureIssues related to new features.Issues related to new features.