Skip to content

Arbitrary JSON RPC subscription API? #27

Open
@hussein-aitlahcen

Description

@hussein-aitlahcen

Hi everyone!

We tried to use the the price webosocket endpoint with the jsonrpc library of parity.
We could not manage to make it work because the subscribe endpoint is expected to provide a subscription ID straight in the result field of the rpc response. But the current implementation is wrapping the ID in an object with a subscription field.
We checked various websocket subscription implementations over JSONRPC and all of them were answering with the ID straight in the result field.

I updated the endpoint to be compliant with the common implementation PR #20 (I also linked many known implementations of it which are behaving correctly).

Any chance we get this merged? I don't know whether there are more stuff to change so feel free to give a strong review on my changes.

NOTE: even your website is using the common implementation for the price feed :)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions