The library currently supports the params = "named" derive attribute for rpc methods. But it doesn't support it for pubsub subscribe methods.
This PR adds params to the allowed attributes for pubsub and adds the params generation code to send out named and raw params, in the same way as it was already implemented for normal rpc methods.
The library currently supports the
params = "named"
derive attribute for rpc methods. But it doesn't support it forpubsub
subscribe methods. This PR addsparams
to the allowed attributes forpubsub
and adds the params generation code to send out named and raw params, in the same way as it was already implemented for normal rpc methods.The following code will work with this PR:
and will send out this JSON-RPC message: