Skip to content

feature: event interceptors #559

@attilaorosz

Description

@attilaorosz

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

No one assigned

    Labels

    flag: needs discussionIssues which needs discussion before implementation.type: featureIssues related to new features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions