mirror of
https://github.com/modelcontextprotocol/servers.git
synced 2026-04-17 23:53:24 +02:00
In sse.ts, /message endpoint, if transport isn't found for the given sessionId, output a "No transport found for sessionId" message.
This commit is contained in:
@@ -42,6 +42,8 @@ app.post("/message", async (req, res) => {
|
||||
if (transport) {
|
||||
console.error("Client Message from", sessionId);
|
||||
await transport.handlePostMessage(req, res);
|
||||
} else {
|
||||
console.error(`No transport found for sessionId ${sessionId}`)
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user