Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Conversation

andi357
Copy link

@andi357 andi357 commented Apr 17, 2015

In some cases it would be useful to explicitly omit the id param from a JSON-RPC request.

The JSON-RPC specification defines a request without the id member as the special "Notification" request type (see 4.1).

I guess the easiest way to do this, is to allow passing NSNull as the requestId. In that case, the request would explicitly not contain the id field. Using NSNull for that, allows also to keep the current default, where the id gets set to '1' if nil was passed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant