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

Websocket support #83

Open
idoodler opened this issue Nov 26, 2018 · 9 comments · May be fixed by #1214
Open

Websocket support #83

idoodler opened this issue Nov 26, 2018 · 9 comments · May be fixed by #1214
Assignees
Labels
feature New feature request major Require a major release

Comments

@idoodler
Copy link

Is your feature request related to a problem? Please describe.
I am currently debugging an token authentication error. The authentication happens via a Websocket connection. Mockoon doesn't allow Websocket request interceptions which would be really dope:)

Describe the solution you'd like
Ability to also intercept and mock Websocket communication. I think it should be a toggle in the "Environment" settings, just like HTTPS.
A nice bonus would be if you could also define a route to be handled in the Websocket intercepter, but I guess this use case is to specific for my problem.

Describe alternatives you've considered
As an alternative I am mocking the response in the Applications code

Additional context
No additional context

@idoodler idoodler changed the title Wegsacket support Websocket support Nov 26, 2018
@255kb 255kb added the feature New feature request label Feb 17, 2019
@bhagatparwinder
Copy link

This will be a game changer!

@255kb
Copy link
Member

255kb commented Dec 16, 2020

@bhagatparwinder I am curious, what type of behavior do you expect when mocking websockets? What would be the most useful for you?
Depending on the answer the implementation may be more or less complex.
It could be the same message (body) sent on each request, different messages depending on rules, etc
As a first step I would go for the simplest implementation, but it also needs to be useful.

@bhagatparwinder
Copy link

I do agree with the simple approach first and build upon it later. A local socket that can provide the same body, to begin with. This would allow an application to load and a developer could work on part of the sites like UI and UX.

Eventually, if it could randomize the output each time using faker or chance that would be awesome!

@255kb
Copy link
Member

255kb commented Dec 18, 2020

@bhagatparwinder Thank you for your feedback 👍
Templating would be supported of course, so we could even be able to conditionally change the response message depending on the {{body}} helper using {{if}} or {{switch}}.

@doug2k1
Copy link

doug2k1 commented Mar 19, 2021

This would be great!

An advanced feature, for the future, could be the ability to send messages at some interval and/or by clicking a button in the Mockoon UI.

Thanks for the great software!

@255kb
Copy link
Member

255kb commented Mar 19, 2021

@doug2k1 it's on the roadmap for this year, but nothing has been decided yet. So if you have ideas concerning implementation or behavior of this feature they are welcome :)

@trickpattyFH20
Copy link

@255kb is this still on the roadmap?

@255kb
Copy link
Member

255kb commented Dec 15, 2021

@trickpattyFH20 Yes it is. You can see the roadmap here and what I am currently working on. However, I cannot give any ETA. Among the tons of things I have to do on this project I would like to work on GraphQL or Websocket next, but these big features takes a lot of time!

@255kb 255kb added App: CLI Issue is for the CLI App: Desktop Issue is for the desktop app labels Apr 21, 2022
@isuru89
Copy link
Contributor

isuru89 commented Nov 24, 2023

I am expecting to do a PoC on websocket support. If everything goes smooth, I will be able to contribute with it.
Fingers crossed. 🤞

isuru89 added a commit to isuru89/mockoon that referenced this issue Dec 4, 2023
@isuru89 isuru89 linked a pull request Dec 4, 2023 that will close this issue
4 tasks
isuru89 added a commit to isuru89/mockoon that referenced this issue Dec 17, 2023
isuru89 added a commit to isuru89/mockoon that referenced this issue Dec 24, 2023
isuru89 added a commit to isuru89/mockoon that referenced this issue Jan 21, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Jan 27, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Jan 27, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Jan 27, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Jan 27, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Jan 27, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Jan 27, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Jan 27, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Jan 27, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 1, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 1, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 1, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 1, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 1, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 1, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 1, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 1, 2024
@255kb 255kb added major Require a major release and removed App: CLI Issue is for the CLI App: Desktop Issue is for the desktop app labels Feb 5, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 5, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 21, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 21, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 23, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Feb 23, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Mar 19, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Mar 19, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Mar 19, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Apr 6, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Apr 6, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue Apr 6, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue May 19, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue May 19, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue May 19, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue May 19, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue May 19, 2024
isuru89 added a commit to isuru89/mockoon that referenced this issue May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request major Require a major release
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

6 participants