Commit Graph

26 Commits

Author SHA1 Message Date
Chris McCormick 226d7d07e2
Improvements to enablePing() & tests (#506)
https://github.com/nbd-wtf/nostr-tools/pull/506
2025-09-29 10:41:40 -03:00
fiatjaf c9ff51e278 subscribeMap() now sends multiple filters to the same relay in the same REQ.
because the initiative to get rid of multiple filters went down.
2025-09-20 16:54:12 -03:00
fiatjaf 1437bbdb0f update removed function in test. 2025-05-28 14:52:36 -03:00
Asai Toshiya 7064e0b828 make it possible to track relays on publish. 2024-10-10 14:45:37 -03:00
fiatjaf 87a91c2daf fix useWebSocketImplementation so it works with pool on nodejs esm. 2024-05-29 13:39:00 -03:00
fiatjaf 0a5eaac088 pool.subscribeManyMap() 2024-04-12 21:50:26 -03:00
fiatjaf 62e5730965
call useWebSocketImplementation() on relay and pool tests. 2024-02-14 13:26:38 -03:00
fiatjaf 2f0ef90bd5
delete some unnecessary code from mock-relay implementation. 2024-01-20 12:48:46 -03:00
Sepehr Safari dd0014aee3 refactor pool.test.ts and update with new mock relay class 2024-01-20 11:29:46 +03:30
fiatjaf 3b81e5e762
use mock relays on pool tests. 2024-01-19 16:12:02 -03:00
Akiomi Kamakura 7d58705e9a Fix typo 2024-01-08 13:50:48 -03:00
fiatjaf 9ac1b63994
a test on pool subscribing to many relays, getting many events then closing on eose. 2023-12-22 08:21:58 -03:00
fiatjaf 7067b47cd4
remove last remains of pool-pure.ts 2023-12-22 07:51:17 -03:00
fiatjaf 7f11c0c618
unsplit, backwards-compatibility, wasm relay and pool must be configured manually from the abstract classes. 2023-12-21 19:57:28 -03:00
fiatjaf fe87529646
change tests and nips to use the new api. 2023-12-19 13:58:37 -03:00
fiatjaf 8840c4d8e2
final adjustments and now even the flaky tests that depend on others's relay should pass most of the time. 2023-12-19 10:01:52 -03:00
fiatjaf 804403f574
change the way eose and connection timeouts work. 2023-12-18 17:11:16 -03:00
fiatjaf 88703e9ea2
update readme with new api. 2023-12-17 22:46:35 -03:00
fiatjaf f56f2ae709
pool tests and pool.ts tweaks. 2023-12-17 22:19:28 -03:00
fiatjaf 420a6910e9
fix Queue, tweaks on relay.ts and make relay.test.ts pass. 2023-12-17 00:27:03 -03:00
fiatjaf 3d541e537e
move to bun and bun:test and remove jest. 2023-12-16 14:53:32 -03:00
William Connatser a2a15567b7 clean up test with a minor refactor to delete the ts-ignore 2023-10-24 08:41:40 -03:00
Alex Gleason 718032022c
just format 2023-08-31 13:42:15 -05:00
futpib 0041008b22 Add an option to disable `seenOn` 2023-07-06 16:38:30 -03:00
Alex Gleason 08885ab8da Refactor imports: use file extension, improve tree shaking, update tests 2023-05-12 17:03:41 -03:00
Alex Gleason 18e8227123 Convert all tests to TypeScript 2023-05-10 21:20:27 -03:00