We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf50e4 commit 1f835e0Copy full SHA for 1f835e0
src/server/sse.ts
@@ -94,7 +94,7 @@ export class SSEServerTransport implements Transport {
94
}
95
96
try {
97
- await this.handleMessage(typeof body === 'string'? JSON.parse(body): body);
+ await this.handleMessage(typeof body === 'string' ? JSON.parse(body) : body);
98
} catch {
99
res.writeHead(400).end(`Invalid message: ${body}`);
100
return;
0 commit comments