How to handle websocket client (Ktor/JS) error to ...
# ktor
a
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
Could you please tell me how to reproduce it?
a
@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.