const handler = this._requestHandlers.get(msg.method);
if (!handler) {
id: msg.id,
error: {
code: JsonRpcErrorCode.MethodNotFound,
message: `Method not found: ${msg.method}`,
},
});
return;
}
try {
const result = await handler(msg.params);