Commit Graph

29 Commits

Author SHA1 Message Date
monlovesmango
7d9d10fdb1 add relay url arg to eoseCb 2022-11-21 16:11:30 -06:00
Leo Wandersleb
1f1bcff803 EOSE nip-15 2022-09-29 07:23:48 -03:00
Lennon Day-Reynolds
821a8f7895 TypeScript definitions (#18) 2022-07-15 15:49:49 -03:00
fiatjaf
2f7e3f8473 bump version. 2022-06-22 20:08:48 -03:00
monlovesmango
536dbcbffe Update pool.js 2022-06-22 20:07:25 -03:00
monlovesmango
ed52d2a8d4 updating cb property for subControllers entries
when updating subscription or adding new relays, subsequent events that are received have the relay as undefined. by updating cb property for the subControllers entries to be an arrow function (when calling sub.sub or sub.addRelay), subsequent events now return the relay url appropriately
2022-06-22 20:07:25 -03:00
fiatjaf
faf8e62120 maybe fix a bug with calling sub.sub() 2022-06-04 18:34:54 -03:00
Ricardo Arturo Cabral Mejia
727bcb05a8 feat: add beforeSend hook to sub() 2022-04-10 19:51:35 -03:00
fiatjaf
454366f6a2 allow signing events with a custom signing function on pool.publish() 2022-01-12 22:32:45 -03:00
fiatjaf
3d6f9a41e0 prevent blocking waiting times on publish (unless "wait" is set in the pool policy). 2022-01-12 17:39:24 -03:00
fiatjaf
01dd5b7a3c bring back @noble/secp256k1 along with micro-bip32. 2021-12-31 22:47:45 -03:00
fiatjaf
16536340e5 small fix on pool.removeRelay() 2021-12-31 22:25:33 -03:00
fiatjaf
5ce1b4c9f7 only initiate subscriptions for new relays added with read:true 2021-12-31 20:50:02 -03:00
fiatjaf
7bc9083bc5 randomChoice pool policy. 2021-12-30 21:46:54 -03:00
fiatjaf
6d4916e6f7 eslint and minor fixes. 2021-12-29 14:35:28 -03:00
fiatjaf
faa308049f always add event.id 2021-12-28 20:44:35 -03:00
fiatjaf
4f0cae0eb8 add missing id arguments. 2021-12-13 21:22:23 -03:00
fiatjaf
02cacd4446 return sub object from .sub() and other methods. 2021-12-12 06:47:52 -03:00
fiatjaf
d3d120cd7c fix some important bugs so it is actually usable. 2021-05-22 22:14:27 -03:00
fiatjaf
b7e33c512c fix many bugs. 2021-02-23 00:18:00 -03:00
Richard Bondi
bdc778314d should subscribe correctly 2021-02-19 09:22:01 -06:00
fiatjaf
789cba142e finish removing ramda. 2021-02-18 20:22:06 -03:00
fiatjaf
3844f68d1a remove ramda and rework logic. 2021-02-18 16:04:41 -03:00
fiatjaf
87de1310b5 some small fixes. 2021-02-17 18:09:30 -03:00
fiatjaf
0e1c23a3f9 commonjs import for ramda. 2021-02-17 17:01:40 -03:00
fiatjaf
c03f8d1c56 adapt to new nip-01, change "attempt" notification logic. 2021-02-15 00:15:24 -03:00
fiatjaf
13dcdf39e3 now it works. 2021-01-10 00:03:33 -03:00
fiatjaf
65e6f22a00 fix dozens of errors so this new release may now actually work. 2021-01-09 22:00:35 -03:00
fiatjaf
44edef63f9 new nostr-tools which abstracts all the relay activity. 2021-01-09 18:06:26 -03:00