yarn build

This commit is contained in:
Justin Spahr-Summers 2024-10-02 22:05:23 +01:00
commit ecbcb8d591
No known key found for this signature in database
GPG key ID: E78498BF3C053CA7

5
dist/client/websocket.js generated vendored
View file

@ -1,4 +1,4 @@
import { validateMessage } from "../shared/message.js";
import { JSONRPCMessageSchema } from "../types.js";
const SUBPROTOCOL = "mcp";
/**
* Client transport for WebSocket: this will connect to a server over the WebSocket protocol.
@ -26,8 +26,7 @@ export class WebSocketClientTransport {
var _a, _b;
let message;
try {
message = JSON.parse(event.data);
validateMessage(message);
message = JSONRPCMessageSchema.parse(JSON.parse(event.data));
}
catch (error) {
(_a = this.onerror) === null || _a === void 0 ? void 0 : _a.call(this, error);