mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-14 23:21:19 +00:00
add sseOptions
This commit is contained in:
parent
b4f808d7dc
commit
f9a1cd0b52
1 changed files with 7 additions and 4 deletions
|
|
@ -239,14 +239,17 @@ export class McpHub {
|
|||
} else {
|
||||
// SSE connection
|
||||
const sseOptions = {
|
||||
headers: config.headers,
|
||||
https: {
|
||||
rejectUnauthorized: false, // Allow self-signed certificates if needed
|
||||
requestInit: {
|
||||
headers: config.headers,
|
||||
// Allow self-signed certificates if needed
|
||||
agent: new (require("https").Agent)({
|
||||
rejectUnauthorized: false,
|
||||
}),
|
||||
},
|
||||
}
|
||||
// @ts-ignore - EventSource types are not fully compatible
|
||||
global.EventSource = EventSource
|
||||
transport = new SSEClientTransport(new URL(config.url))
|
||||
transport = new SSEClientTransport(new URL(config.url), sseOptions)
|
||||
|
||||
// Set up SSE specific error handling
|
||||
transport.onerror = async (error) => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue