decode

abstract fun decode(bytes: ByteArray): CoapMessage(source)

Throws

when bytes are not a well-formed message.