WebsocketContentConverter
interface WebsocketContentConverter
A custom content converter that could be used in the WebSockets plugin Could provide bi-directional conversion implementation. One of the most typical examples of the content converter is a JSON converter that provides both serialization and deserialization
Implementations must override at least one of serialize or serializeNullable methods.
Functions
Link copied to clipboard
Link copied to clipboard
Checks if the content converter can deserialize a frame
Link copied to clipboard
Extensions
Link copied to clipboard
inline suspend fun <T> WebsocketContentConverter.deserialize(content: Frame, charset: Charset = Charsets.UTF_8): T