Hello, I have a problem with my existing Ktor project. Currently I'm using WebSockets and want to migrate these step by step to RPC. For this, I naturally have the WebSocket plugin installed in the project and configured according to my needs. When KRPC is now installed, Ktor no longer starts because the WebSocket plugin is installed twice.
I have now removed the WebSocket plugin and made the settings at the route level (see Screenshot attached). However, serialization cannot be configured this way and therefore there's a runtime exception because Ktor can no longer serialize and deserialize the messages. I've temporarily helped myself with the Ktor function marked as internal sendSerializedBase:
sendSerializedBase<FvWsResponse>(it as FvWsResponse, KotlinxWebsocketSerializationConverter(Json), Charsets.UTF_8)
Have I overlooked something, how should I proceed in such situations?