Class: Manceps::Transport::Base
- Inherits:
-
Object
- Object
- Manceps::Transport::Base
- Defined in:
- lib/manceps/transport/base.rb
Overview
Abstract base class for MCP transports.
Direct Known Subclasses
Instance Method Summary collapse
- #close ⇒ Object
- #listen ⇒ Object
- #notify(body) ⇒ Object
- #on_notification(&block) ⇒ Object
- #request(body) ⇒ Object
- #request_streaming(body) ⇒ Object
- #terminate_session(session_id) ⇒ Object
Instance Method Details
#close ⇒ Object
23 24 25 |
# File 'lib/manceps/transport/base.rb', line 23 def close raise NotImplementedError end |
#listen ⇒ Object
27 28 29 |
# File 'lib/manceps/transport/base.rb', line 27 def listen(&) raise NotImplementedError end |
#notify(body) ⇒ Object
15 16 17 |
# File 'lib/manceps/transport/base.rb', line 15 def notify(body) raise NotImplementedError end |
#on_notification(&block) ⇒ Object
31 32 33 |
# File 'lib/manceps/transport/base.rb', line 31 def on_notification(&block) @notification_callback = block end |
#request(body) ⇒ Object
7 8 9 |
# File 'lib/manceps/transport/base.rb', line 7 def request(body) raise NotImplementedError end |
#request_streaming(body) ⇒ Object
11 12 13 |
# File 'lib/manceps/transport/base.rb', line 11 def request_streaming(body, &) raise NotImplementedError end |
#terminate_session(session_id) ⇒ Object
19 20 21 |
# File 'lib/manceps/transport/base.rb', line 19 def terminate_session(session_id) raise NotImplementedError end |