abstract fun readFromClient(message: Bytes): Bytes
(source)
Adds message bytes to the reader stream, returning the bytes that could be decrypted.
message
- the message to decrypt
StreamException
- if the message cannot be decrypted
Return
the message, decrypted and ready for consumption, or null if the bytes provided were an incomplete message.