class

MCP::Shared::ReadBuffer

Inherits Reference < Object

Instance methods

append(chunk : String)
Source
append(chunk : Bytes)
Source
clear
Source
read_message

Attempts to read a complete JSON-RPC message.

Searches only the unread suffix of the backing buffer for a newline, so that consumed newlines from prior successful reads do not trigger premature parsing of a fragmented message.

Source