Is it possible to change the `CoroutineDispatcher`...
# ktor
z
Is it possible to change the
CoroutineDispatcher
used in ktor websocket? I’d like to consume the messages on a single threaded dispatcher. As a workaround I am resending the messages on a new channel and consuming them from a coroutine I launched on the dispatcher I want.
Or I guess I could
withContext {}
the entire websocket block. But I was wondering if there is a way to set this in ktor