Skip to content

Optimize execution of user event handlers #10

@andyrichardson

Description

@andyrichardson

About

For now, all user-provided event handlers are executed sequentially.

await onSubscribe(); // User side-effect - blocking
// ...
// subscriptionless handling logic

It would be nice to have the option between:

  • sequential execution (user handler -> subscriptionless handler -> response)
  • concurrent execution (user handler and subscriptionless handler -> response)

Note: onConnectionInit handler should always be executed sequentially for authentication purposes

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions