Current transport state
Whether the transport is currently connected
Register an event listener
Remove an event listener
Register a one-time event listener
Protected emitEmit an event
Remove all listeners for an event, or all events
Optional event: KGet the number of listeners for an event
Send a message and return the response
For HTTP transport, this actually performs the request and returns when the response is received (unlike streaming transports).
Make a JSON-RPC request and return the response
This is the primary method for HTTP transport, providing a more natural request-response pattern.
Optional signal: AbortSignalMake a batch request and return all responses
Optional signal: AbortSignal
HTTP Client Transport
Note: HTTP is stateless, so this transport doesn't maintain a persistent connection. The
connect()method is a no-op, andstatereflects readiness to make requests.Server → Client notifications are NOT supported over HTTP (use WebSocket for that).