Commit Graph

17 Commits

Author SHA1 Message Date
William Casarin
acadc4a9d9 enostr: add PoolEventBuf
to simplify lifetimes in some situations

Signed-off-by: William Casarin <jb55@jb55.com>
2024-11-14 11:43:35 -08:00
Ken Sedgwick
570d64c3cd canonicalize relay urls to avoid false duplicates 2024-10-29 13:42:29 -07:00
Ken Sedgwick
e166dc17ef Skip adding relays that are already in the pool 2024-10-29 13:42:28 -07:00
William Casarin
1f149aec3b fix clippy warnings
Signed-off-by: William Casarin <jb55@jb55.com>
2024-08-19 21:26:20 -07:00
William Casarin
973a7c780f thread: remote subscriptions working
Signed-off-by: William Casarin <jb55@jb55.com>
2024-08-19 21:22:58 -07:00
William Casarin
9328ef2dff remove duplicate filter types
only use nostrdb::Filter

Signed-off-by: William Casarin <jb55@jb55.com>
2024-08-19 21:12:32 -07:00
William Casarin
a36ce31fc7 pool: increase default reconnect time to 5 seconds
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-10 16:00:38 -07:00
William Casarin
3e96f815b1 apply cargo warning suggested fixes
Signed-off-by: William Casarin <jb55@jb55.com>
2024-02-10 16:19:31 -08:00
William Casarin
74ce87049d local nostrdb subscriptions working
Signed-off-by: William Casarin <jb55@jb55.com>
2024-02-07 15:18:23 -08:00
William Casarin
9a9bb13e08 enostr: use data instead of strings in Pubkey and EventId
Signed-off-by: William Casarin <jb55@jb55.com>
2024-02-07 12:02:13 -08:00
William Casarin
f46797ea10 net: geometric backoff connection retries on disconnects 2023-12-24 14:24:22 -08:00
William Casarin
09cd8ff379 pool: implement keepalive pinging
To prevent us from disconnecting, introduce keepalive pinging. In the
event loop we check if any relays need a refresh ping.
2023-12-24 12:34:17 -08:00
William Casarin
80c06e4ec4 pool: fix some warnings when targeting wasm 2023-07-06 19:35:45 -07:00
William Casarin
48af3dde9d many improvements 2022-12-12 14:33:37 -08:00
William Casarin
98adb82e56 receiving initial messages! 2022-12-11 18:34:43 -08:00
William Casarin
5619ae60ad relay connected! 2022-12-11 17:09:44 -08:00
William Casarin
e6571d8847 initial nostr code 2022-12-11 15:46:18 -08:00