71 Commits

Author SHA1 Message Date
fiatjaf
f9d058a95a adapt to updated go-nostr. 2022-02-13 08:40:06 -03:00
fiatjaf
ea7d2eeb3e guard all websocket writes with mutexes. 2022-01-11 16:00:19 -03:00
fiatjaf
629c9174eb update go-nostr. 2022-01-02 09:00:14 -03:00
fiatjaf
e7286f0658 fix "error writing ping" warnings. 2021-12-27 11:17:15 -03:00
fiatjaf
a63b805898 fix and improve error handling and notice sending flow. 2021-12-27 11:14:29 -03:00
fiatjaf
30eae726c1 turn relayer into a server framework and put actual relay code into ./basic 2021-12-25 21:22:40 -03:00
fiatjaf
ac93e5c028 make subscription ids unique per each websocket connection.
before they were globally unique, which was wrong.
2021-12-16 21:01:00 -03:00
fiatjaf
0265be6d31 upgrade to go-nostr v0.2.0. 2021-12-16 20:54:57 -03:00
fiatjaf
333d530901 don't send NOTICE on json parsing errors. 2021-11-28 17:01:17 -03:00
fiatjaf
6359ad8776 ensure deletion of old stuff such that we don't have a huge database. 2021-11-08 18:15:27 -03:00
fiatjaf
694eccd0c8 small fixes and guards. 2021-02-23 00:27:16 -03:00
Richard Bondi
36cd95a58e wrong index 2021-02-20 19:04:22 -03:00
fiatjaf
bc860ff28b one extra bit of logging. 2021-02-20 19:04:17 -03:00
fiatjaf
db384be3f9 fix some query bugs. 2021-02-17 16:59:56 -03:00
fiatjaf
9c992c90dc adapt to new nip-01. 2021-02-14 21:08:02 -03:00
fiatjaf
80d244b2c3 remove rate limiter, this is just a proof-of-concept anyway. 2021-02-07 14:28:06 -03:00
Richard Bondi
3dacb07b62 delete metadata, not notes 2021-01-22 00:46:21 -03:00
fiatjaf
029049e587 remove writedeadline for writing ping. 2021-01-19 17:37:36 -03:00
Richard Bondi
e58f5cbc84 fix body for calling request 2021-01-16 21:38:02 -03:00
fiatjaf
2ee22402c5 fix related events: ref => tags. 2021-01-15 18:29:39 -03:00
fiatjaf
e9cbff07a4 migrate off of main nostr repository. 2021-01-13 23:46:06 -03:00