Interface McpSimulationStreamItem
One immutable, exactly encoded simulated SSE item.
- Author:
- Mark Allen
-
Method Details
-
getType
- Returns:
- the item kind
-
getMessage
- Returns:
- the JSON value for a JSON-message item, otherwise empty
-
getComment
- Returns:
- exactly
keepalivefor a keep-alive comment, otherwise empty
-
getEncodedBytes
byte @NonNull [] getEncodedBytes()The bytes are the exact canonical unchunked SSE frame corresponding to the mutually exclusive message or comment projection.- Returns:
- a fresh copy of the exact unchunked SSE frame
-