-
Notifications
You must be signed in to change notification settings - Fork 1k
-
Notifications
You must be signed in to change notification settings - Fork 1k
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 for Mock engine #1413
Comments
I bumped into this as well, it would be great to have. I started taking a look at writing something for this, but ran into a couple things:
|
I also wish this were supported. In the meantime, you can use the
|
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Supported with |
@e5l This issue seems to be about websocket client testing, and you closed this issue out mentioning it is supported with the Are you aware of any client-only websocket testing library besides OkHTTP's If you aren't aware of any libraries fitting my description I wonder if it could be helpful to reopen this issue? |
Hi @shaunek , I totally agree with you. I was going to use |
@osrl Many cycles have passed since my post so admittedly I don't really remember detail, but I don't think I found any good alternatives so I used OkHTTP's |
@shaunek Stumbled across this issue yesterday as I was going to test my websocket client and was a bit confused as well. I have made a comment in the YouTrack issue, not sure where it's best to comment though. |
Subsystem
Client (
Mock
engine),WebSocket
Is your feature request related to a problem? Please describe.
Currently there is no
WebSocket
support for theMock
engine on the client part. This could be particularly useful when testing clients that interact with WebSockets.Describe the solution you'd like
I think there should be a method inside the
Mock
engine that allows to setup a proper WebSocket mock. This could be something likeMotivation to include to ktor
This feature could be useful to all the people that want to test a client that interacts with a websocket without having to spin one up.
The text was updated successfully, but these errors were encountered: