storacha / w3name

IPNS client and service for generating, updating, and tracking immutable names with signed updates
Other
45 stars 12 forks source link

Use POST endpoint just after creation or update of a record #44

Closed francois-potato closed 2 years ago

francois-potato commented 2 years ago

ipns-publisher rely on the WSS endpoint to propagate records after creation or update.

There are some problems with the current implementation:

[ipns-publisher] [2022-08-05 15:36:49] 2022-08-05T15:36:49.272Z ipns-pub Error: websocket connection closed: Connection dropped by remote peer.
[ipns-publisher] [2022-08-05 15:36:49] 2022-08-05T15:36:49.272Z ipns-pub 💤 Sleeping before retry
joshghent commented 2 years ago

After speaking with @alanshaw, we need to preserve broadcasting to the websocket. The plan is to now

  1. Update w3name to POST to ipns-publisher upon record creation/updation (as well as still broadcasting to the websocket).
  2. Once deployed, remove the web socket connection in ipns-publisher