Skip to content

Use websockets for Subtensor#2455

Merged
thewhaleking merged 7 commits intostagingfrom
feat/thewhaleking/use-websockets
Nov 21, 2024
Merged

Use websockets for Subtensor#2455
thewhaleking merged 7 commits intostagingfrom
feat/thewhaleking/use-websockets

Conversation

@thewhaleking
Copy link
Contributor

@thewhaleking thewhaleking commented Nov 21, 2024

This changes the way Subtensor connects to the websocket server. Previously, the websocket was initialized from within SubstrateInterface. However, this was using the stdlib websocket package. The PyPI websockets package has significantly better stability, and results in no broken pipes in our testing.

Furthermore, because we're bumping the websockets requirement version to 14.1+, we're transitioning the async websockets client in AsyncSubstrate to use this updated client.

…l. Updated AsyncSubstrate to use the updated async websocket client, bumped websockets version req to 14.1.
@thewhaleking thewhaleking changed the base branch from master to staging November 21, 2024 21:02
thewhaleking and others added 3 commits November 22, 2024 00:45
Co-authored-by: Roman <167799377+roman-opentensor@users.noreply.github.com>
Co-authored-by: Roman <167799377+roman-opentensor@users.noreply.github.com>
@thewhaleking thewhaleking merged commit 1164fb5 into staging Nov 21, 2024
@thewhaleking thewhaleking deleted the feat/thewhaleking/use-websockets branch November 21, 2024 23:07
@thewhaleking thewhaleking changed the title [WIP] use websockets for Subtensor Use websockets for Subtensor Nov 22, 2024
@ibraheem-abe ibraheem-abe mentioned this pull request Nov 26, 2024
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

Successfully merging this pull request may close these issues.

2 participants