Commit Graph

33 Commits

Author SHA1 Message Date
Ricardo Arturo Cabral Mejia
727bcb05a8 feat: add beforeSend hook to sub() 2022-04-10 19:51:35 -03:00
fiatjaf
f04bc0cee1 fix filter on statusCallback: id -> ids 2022-02-15 21:03:44 -03:00
fiatjaf
b271d6c06b fix .kind filter validator. 2022-01-01 10:26:55 -03:00
fiatjaf
1037eee335 trim relay url on normalize. 2021-12-31 22:03:02 -03:00
fiatjaf
ce214ebbab small tweaks on relayConnect. 2021-12-30 15:02:05 -03:00
fiatjaf
6d4916e6f7 eslint and minor fixes. 2021-12-29 14:35:28 -03:00
fiatjaf
fff31b5ff4 automatically run received events through the filters they should pass (double-check the work made by the relay). 2021-12-14 22:00:42 -03:00
fiatjaf
4f0cae0eb8 add missing id arguments. 2021-12-13 21:22:23 -03:00
fiatjaf
06e867b675 stop sending repeated REQs. 2021-12-13 20:58:49 -03:00
fiatjaf
22e895c7c2 use exponential backoff for reconnections. 2021-12-12 11:39:56 -03:00
fiatjaf
a99188e4cf remove log line for events with invalid signature. 2021-12-12 05:54:48 -03:00
fiatjaf
d3d120cd7c fix some important bugs so it is actually usable. 2021-05-22 22:14:27 -03:00
fiatjaf
28443710e3 improve reconnection attempts to relays and print less errors. 2021-05-15 18:12:03 -03:00
fiatjaf
b7e33c512c fix many bugs. 2021-02-23 00:18:00 -03:00
Richard Bondi
a25e6c4265 reuse channel for sub sub 2021-02-19 12:08:01 -06:00
Richard Bondi
bdc778314d should subscribe correctly 2021-02-19 09:22:01 -06:00
fiatjaf
0c0f9d0e76 sha256 returns a promise! 2021-02-18 23:53:55 -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
d355bbead4 use websocket-polyfill. 2021-02-14 22:44:23 -03:00
fiatjaf
1c2f78f380 eliminate fake uncatched errors from connect(). 2021-02-05 23:55:21 -03:00
Richard Bondi
a87fad91a6 provide relay status 2021-01-23 18:21:04 -03:00
Richard Bondi
6586a1b85d remove hanging if no connection 2021-01-19 10:09:16 -03:00
fiatjaf
63259eb7c3 remove pws. 2021-01-16 19:55:50 -03:00
fiatjaf
0be9c408be fix: req-key -> req-event. 2021-01-12 19:09:35 -03:00
fiatjaf
f4fd261084 implement some pong-reply logic. 2021-01-10 19:25:52 -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
fiatjaf
5921ad1080 finish websocket protocol. 2021-01-04 14:28:06 -03:00
fiatjaf
b077271d46 initial commit. 2021-01-04 14:15:27 -03:00