Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

working with socket.io #525

Closed
johnico opened this issue Jan 1, 2021 · 1 comment
Closed

working with socket.io #525

johnico opened this issue Jan 1, 2021 · 1 comment
Labels
bug Something isn't working scope:node Related to MSW running in Node

Comments

@johnico
Copy link

johnico commented Jan 1, 2021

Hi, I am looking for a solution to work with a socket.io so when the test is up let's say cypress or puppeteer
and the request from the test to the mock will also send an event to socket.io

is it mean that I can add a real socket.io code ? or need to build smth by myself? because I did not find something like that in the docs

in the end, I should receive it in the redux store

my goal is to have an Integration test with cypress or puppeteer and mock for my rest api and also for socket.
all of that is for test my app without any server or the whole ecosystem

thanks

@johnico johnico added bug Something isn't working scope:node Related to MSW running in Node labels Jan 1, 2021
@kettanaito
Copy link
Member

kettanaito commented Jan 1, 2021

Hey, @johnico. Thanks for reaching out.

WebSocket support is on our roadmap. In fact, it's in development at the moment (#396) and you can check it out by installing the mentioned branch locally if you're experienced in that procedure. Otherwise, you can expect WebSocket support as one of the first major features to land in the next library releases.

is it mean that I can add a real socket.io code ? or need to build smth by myself? because I did not find something like that in the docs

Currently, there is no WebSocket support. You can find the API examples in the aforementioned pull request to see how such support will be implemented in the future.

@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working scope:node Related to MSW running in Node
Projects
None yet
Development

No branches or pull requests

3 participants
@kettanaito @johnico and others