Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Use W3name web sockets for updates #651

Description

@juliangruber

https://github.com/storacha/w3name/tree/main/packages/api#get-namekeywatch---receive-updates-via-websocket-when-new-values-are-published-to-a-name

Instead of polling Name.resolve() twice every 10 minutes every instance, only read it on process start (or test if the WebSocked emits the current value on connect), and then use the WebSocket API for updates.

This should both be faster for Station and cheaper for W3Name

Caveat: This might create too many open connections on W3Name, so test carefully.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions