serialize
inline suspend fun <T> WebsocketContentConverter.serialize(value: T, charset: Charset = Charsets.UTF_8): Frame
Content copied to clipboard
Serializes a value to a WebSocket Frame. This function could throw WebsocketConverterNotFoundException
if the value is not suitable for conversion
Return
a converted OutgoingContent value, or null if value isn't suitable for this converter
Parameters
charset
response charset
value
to be converted