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:
parent
2da9f33969
commit
3adf59409c
1 changed files with 2 additions and 0 deletions
|
|
@ -42,6 +42,8 @@ app.post("/message", async (req, res) => {
|
||||||
if (transport) {
|
if (transport) {
|
||||||
console.error("Client Message from", sessionId);
|
console.error("Client Message from", sessionId);
|
||||||
await transport.handlePostMessage(req, res);
|
await transport.handlePostMessage(req, res);
|
||||||
|
} else {
|
||||||
|
console.error(`No transport found for sessionId ${sessionId}`)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue