Add support for JSON-RPC batching (#67)

* Update StdioTransport documentation comments to indicate support for JSON-RPC batches

* Add server support for JSON-RPC batching

* Add client support for JSON-RPC batching

* Fix bug that caused error messages to be wrapped unnecessarily
This commit is contained in:
Mattt 2025-04-10 12:13:41 -07:00 • committed by GitHub
commit 82f4fd29b3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,7 +78,7 @@ struct ResponseTests {
#expect(decodedError.code == -32700)
#expect(
decodedError.localizedDescription
== "Parse error: Invalid JSON: Parse error: Invalid JSON: Invalid syntax")
== "Parse error: Invalid JSON: Invalid syntax")
} else {
#expect(Bool(false), "Expected error result")
}