The user-agent is whatever you put in the header
The user-agent is whatever you put in the header


node_modules/wrangler/config-schema.json in the $schema field, and it should start workingsse to send some data to a page and im getting the hanging Promise was cancelled.. errorEventSource on client end, so that i can ~hopefully broadcast the data when i get a req to a different endpoint
_worker.js file/directory in the output directory, but with Workers, I think you need to be explicit"No such module \'pages/api/utils/buffer'" when I try to use a .arrayBuffer() from an image fetch request.arrayBuffer() shouldn't require nodejs_compat...node:crypto module
New SSE connection. NOTE: The sse transport is deprecated and has been replaced by streamable-http
Query parameters: [Object: null prototype] {
url: 'http://localhost:8788/sse',
transportType: 'sse'
}
SSE transport: url=http://localhost:8788/sse, headers=Accept
Received 401 Unauthorized from MCP server: SSE error: Non-200 status code (401)case '/sse':
const { readable, writable } = new TransformStream();
const writer = writable.getWriter();
broker.addClient(writer);
console.log("here");
request.signal.onabort = () => {
broker.removeClient(writer);
writer.close();
};
return new Response(readable, {
headers: new Headers({
'Content-Type': 'text/event-stream; charset=utf-8',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'X-Accel-Buffering': 'no'
})
});