Skip to content

Migrate WebSocketInterceptor to the socket level #806

Description

@kettanaito

Now that we have all the primitives, websocket interception should be (1) http-to-ws protocol upgrade listener via http interceptor; (2) direct WebSocket class patch for direct connections.

This will allow us to intercept any websocket connection, not just those made via the global WebSocket class, and also eliminate any need in customizing interceptors or MSW (see mswjs/msw#2742).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions