Skip to content

mock-socket configuration issue ? #364

@maxpontreau

Description

@maxpontreau

Hello,

I working on an Angular projet.
I'm trying to use a real websocket for my production code and the mock-socket for my cypress tests.

Here how I start the websocket in production (using sockjs-client & stompjs librairies)
image

Now maybe I'm mistaken, but I was expected that with this code in cypress, the server would be mocked and the production websocket code would work:
image

When launching cypress the websocket does not succeed to get a connection.

Where am I wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions