Class: RailsAiContext::McpController::FlushableStream

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
app/controllers/rails_ai_context/mcp_controller.rb

Overview

The MCP SDK's SSE writer calls stream.flush after every event, but Live's buffer writes straight through to the client and defines no flush - the NoMethodError would 500 the request after the payload was already delivered and tear down long-lived GET streams.

Instance Method Summary collapse

Instance Method Details

#flushObject



26
# File 'app/controllers/rails_ai_context/mcp_controller.rb', line 26

def flush; end