Join Slack
Communities
Powered by
I am trying to run some tests were I don't send an...
# ktor
c
coder82
06/18/2018, 7:53 AM
I am trying to run some tests were I don't send anything back and let the test hang inside handleWebSocketConversation
d
Deactivated User
06/18/2018, 8:41 AM
You have a timeout here:
https://ktor.io/features/websockets.html#installing
you I guess it is for the connection I will verify and update the documentation. When reading packets, I bet you can use
withTimeout
from
kotlinx.coroutines
to limit the time you wait for receiving a frame
Deactivated User
06/18/2018, 8:42 AM
https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md#timeout
c
coder82
06/18/2018, 11:53 AM
ah ok i'll have a look
Open in Slack
Previous
Next