How to handle websocket client (Ktor/JS) error to avoid close?
CloseReason: failed to execute 'decode' on 'textdecoder' the encoded data was not valid
a
Aleksei Tirman [JB]
10/21/2022, 7:08 AM
Could you please tell me how to reproduce it?
a
Andrey Tabakov
10/21/2022, 9:37 AM
@Aleksei Tirman [JB]
I can't actually, I've tried to create a sample app, but there is no error.
This happens from time to time, I don't really can handle it.
I have a multiplatform project, it happens constantly when my client is up and I shutdown a backend.
I use CBOR with KotlinxWebsocketConverter, it can cause a problem, I think.
Actually I have a lot of bugs with ws as active user of it. If you want, we could schedule a call, I will show you this problem and help you to investigate a problem.