-
Notifications
You must be signed in to change notification settings - Fork 273
Example/doc for how to talk to a PubSub server #120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
If you have a running server from this example: You need to issue a standard RPC with
|
I'm running the example using macros at https://github.com/paritytech/jsonrpc/blob/a95e135017c3a29fbda5dad88dc62f8797792443/macros/examples/pubsub-macros.rs But I get this:
|
I did get your example to work with the example not using macros. But using the macros would be sweet. |
Hmm, you're right. It turned out that the alias invocation in Please try with #121 or remove |
That worked better! Thanks. Now I get:
Now I will just move on to try to get this running on the WebSocket server. |
You can have a look how we wrapped the I'm considering moving this into this crate though. |
I got the server running. But when I try to communicate with in using a python websocket client I get this response:
Is there anything I can do about that? Would the ws crate need some modifications or which part is it that stops subscriptions to work over ws? |
Could you post the example somewhere? For PubSub to work you need to ensure that |
Ah. My bad. I removed the call to |
It kind of escalates with the |
It's actually just a re-export of |
Thank you. That would be awesome. |
Please have a look at #126. I've moved the implementation of |
@tomusdrw Thanks for the help! Got it working and also got an example based on macros working. Merging that PR would solve/close this issue. |
Awesome! Glad to hear that. |
I don't find very much information how to talk to a server using the PubSub feature of this repository. Would it be possible to add an example or some docs on that?
I have followed the example file to set up a server, and it is running. But I don't know what send to it to register my client.
Some help with this would be awesome. Thanks.
The text was updated successfully, but these errors were encountered: