You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6b5d9ed
Browse filesBrowse the repository at this point in the historyBrowse files
fix(v2): align initialization and JSON-RPC batch behavior
Answer a v2 initialize request for any protocol version with the version
this runtime supports instead of rejecting it with Invalid params, and
treat an omitted `params` member as "no arguments" so all-optional
methods such as `session/list` validate.
Decode a JSON-RPC batch into a list, dispatch each entry as it would be
in its own frame, and return the collected replies as one ordered array.
Empty batches answer a single -32600, malformed entries answer in place,
and response entries are routed rather than echoed. Batches are carried
by the ndjson, SSE and WebSocket transports; Streamable HTTP POST keeps
answering a batch root with 501, so the HTTP client refuses a batch send.
0 commit comments