https://kotlinlang.org logo
#ktor
Title
# ktor
r

Riccardo Montagnin

10/24/2019, 9:42 AM
Hi guys, is there a guide on how to mock an HttpClient so that it can return proper WebSocket responses? I was only able to find the mocking guide for the server part, but not the client one
e

e5l

10/24/2019, 9:44 AM
Hi @Riccardo Montagnin, sorry but there is no
WebSocket
support for
Mock
engine
r

Riccardo Montagnin

10/24/2019, 9:44 AM
So I cannot test a client that supports WebSockets?
e

e5l

10/24/2019, 9:45 AM
Yes. Could you file an issue about it?
r

Riccardo Montagnin

10/24/2019, 9:46 AM
To add
WebSocket
support for
Mock
engine? sure
e

e5l

10/24/2019, 9:46 AM
Yep, it must be simple to do and quite useful.
r

Riccardo Montagnin

10/24/2019, 9:55 AM
66 Views