We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bfe860 commit a03c748Copy full SHA for a03c748
1 file changed
packages/server/src/server/stdio.ts
@@ -99,15 +99,15 @@ export class StdioServerTransport implements Transport {
99
send(message: JSONRPCMessage): Promise<void> {
100
return new Promise((resolve, reject) => {
101
const json = serializeMessage(message);
102
-
+
103
// Handle write errors (e.g., EPIPE when client disconnects)
104
const onError = (error: Error) => {
105
this._stdout.off('error', onError);
106
reject(error);
107
};
108
109
this._stdout.once('error', onError);
110
111
if (this._stdout.write(json)) {
112
113
resolve();
0 commit comments