class
ActionController::MCPServer::Session
- ActionController::MCPServer::Session
- Reference
- Object
Overview
the state of an MCP client connection
Defined in:
action-controller/mcp/session.crConstructors
Instance Method Summary
-
#bound : Hash(String, String)
the path params bound from an endpoint URL, a session can only be used at that URL
-
#close(toolbox : String) : Bool
returns
falseif the toolbox was not open - #expired?(timeout : Time::Span) : Bool
- #id : String
- #last_seen : Time
-
#notifications : Channel(String)
server to client messages awaiting delivery via the GET event stream
-
#notify(message : String) : Nil
queues a message for the event stream, dropped if the queue is full
-
#open(toolbox : String) : Bool
returns
falseif the toolbox was already open - #open?(toolbox : String) : Bool
- #open_toolboxes : Array(String)
- #protocol_version : String
- #terminate : Nil
- #touch : Nil
Constructor Detail
Instance Method Detail
def bound : Hash(String, String)
#
the path params bound from an endpoint URL, a session can only be used at that URL
def notifications : Channel(String)
#
server to client messages awaiting delivery via the GET event stream
def notify(message : String) : Nil
#
queues a message for the event stream, dropped if the queue is full