You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6d272df
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/_client/transports.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -233,6 +233,12 @@ http_transport = MCP::Client::HTTP.new(url: "https://api.example.com/mcp") do |f
233
233
end
234
234
```
235
235
236
+
{: .note }
237
+
> Answers to server-to-client requests (a pong, an elicitation result) are POSTed from inside
238
+
> the SSE streaming callback of another response, re-entering the connection on the same thread.
239
+
> The default Net::HTTP adapter opens a connection per request, which makes this safe; an adapter
240
+
> with persistent connections must tolerate that re-entry.
241
+
236
242
## Custom Transports
237
243
238
244
If the transport layer you need is not included in the gem, you can build and pass your own instances so long as they conform to the following interface:
0 commit comments