Skip to content

Conversation

@arnetheduck
Copy link
Member

The message processing hook is intended for handling notifications / requests from the server which can happen with for example websockets and other bidirectional transports.

When using the HTTP endpoint, the server does not really have the opportunity to send anything except the response since the connection is unidirectional.

  • don't call processing hook for http endpoint
  • make raised exceptions more accurate with respect to spec
  • InvalidRequest -> ApplicationError, deprecate former name
  • one less copy of parameters in rpc macro code
  • more strict handling of missing / null fields in jrpc_sys
    • differentiate between null and "not present" id in requests
    • allow null request id ("not present"/notifications TODO!)
    • don't allow null parameter list - allow a non-present one
    • stop parsing earlier when jsonrpc tag is missing/wrong
    • restore some backwards compat with web3, broken in clients: reduce mem usage, refactor protocol handling #247
    • discard empty batches earlier

The message processing hook is intended for handling notifications /
requests from the server which can happen with for example websockets
and other bidirectional transports.

When using the HTTP endpoint, the server does not really have the
opportunity to send anything except the response since the connection is
unidirectional.

* don't call processing hook for http endpoint
* make raised exceptions more accurate with respect to spec
* `InvalidRequest` -> `ApplicationError`, deprecate former name
* one less copy of parameters in rpc macro code
* more strict handling of missing / null fields in jrpc_sys
  * differentiate between `null` and "not present" id in requests
  * allow `null` request id ("not present"/notifications TODO!)
  * don't allow `null` parameter list - allow a non-present one
  * stop parsing earlier when `jsonrpc` tag is missing/wrong
  * restore some backwards compat with web3, broken in #247
  * discard empty batches earlier
@arnetheduck arnetheduck requested a review from jangko November 24, 2025 15:50
* remove unused `RequestBatchTx`/`ResponseBatchTx`
* streamline jrpc_sys tests
@arnetheduck arnetheduck merged commit bff2043 into master Nov 28, 2025
26 checks passed
@arnetheduck arnetheduck deleted the unidir branch November 28, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants