Wrapped the WebSocket with Kotlin Channels and Flow

Hello colleagues!
I tried wrapping the WebSocket with Kotlin Channels and Flow.
Perhaps you could do it more elegantly.
I look forward to your comments.

Consider wrapping your OkHttpClient with Ktor Client and use the WebSocket feature!