format update with prettier

This commit is contained in:
Shane 2025-05-20 09:25:47 -07:00
commit a61a1b0df2
No known key found for this signature in database
GPG key ID: 4C057F3D5CBFE209

View file

@ -268,18 +268,21 @@ app.get("/stdio", async (req, res) => {
const stderrHandler = (chunk: Buffer) => {
// Only send if the transport exists in our map (meaning it's still active)
if (webAppTransports.has(webAppTransport.sessionId)) {
webAppTransport.send({
jsonrpc: "2.0",
method: "notifications/stderr",
params: {
content: chunk.toString(),
},
})
.catch((error: any) => {
console.error(`Error sending stderr data to client: ${error.message}`);
// If we hit an error sending, clean up the transport
webAppTransports.delete(webAppTransport.sessionId);
});
webAppTransport
.send({
jsonrpc: "2.0",
method: "notifications/stderr",
params: {
content: chunk.toString(),
},
})
.catch((error: any) => {
console.error(
`Error sending stderr data to client: ${error.message}`,
);
// If we hit an error sending, clean up the transport
webAppTransports.delete(webAppTransport.sessionId);
});
}
};