Is there any Ktor raw socket test client?


I chose Ktor to write a raw socket application, mainly for the coroutine support.
Now I would like to write tests for it, is there any convenient test client which does not bind sockets etc. like for the WebSockets/Server etc.?
On their website for testing this is not mentioned: Testing | Ktor .

I would be also be happy if someone can provide a testing routine if its not possible use a testing client. Would I need something like MockK to mock aSocket etc.?

1 Like