Skip to content
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

Use Websockets for Sync Substrate #2454

Closed
thewhaleking opened this issue Nov 21, 2024 · 0 comments
Closed

Use Websockets for Sync Substrate #2454

thewhaleking opened this issue Nov 21, 2024 · 0 comments
Assignees

Comments

@thewhaleking
Copy link
Contributor

thewhaleking commented Nov 21, 2024

Our disconnection issues (broken pipe) don't happen in async substrate interface. I theorise this is due to the use of websockets (PyPI package) rather than the websocket stdlib package. We know there's no disconnect with the async websockets, but we need to see if the same holds true of the websockets sync (threading) package.

SubstrateInterface accepts a websockets object arg (which we've used in integration tests #2433 ). I want to initiate the websocket at initialisation of the Subtensor object, and pass this to the SubstrateInterface class for init.

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

No branches or pull requests

1 participant