19 Commits

Author SHA1 Message Date
fiatjaf
b6e7fabeb6
move storage plugins to eventstore module. 2023-10-31 16:38:32 -03:00
fiatjaf
bbe186494e
replace mutex-guarded maps with xsync/v2 maps. 2023-10-03 08:32:07 -03:00
fiatjaf
8968982b9a
relayer, second attempt, now much better. 2023-08-10 14:32:11 -03:00
fiatjaf
ebfff13b18 use envelopes everywhere. 2023-06-16 17:48:34 -03:00
Isaque Veras
0b7a1669b8
chore(listener): removing redundancy () 2023-06-03 16:28:02 -03:00
0x0ff
8b3ff7ac26 fix: remove listeners when client disconnects 2022-12-29 13:59:19 -03:00
fiatjaf
d69479974c
expose AddEvent() method, allow implementations to deal with unknown websocket messages, remove opinionated validations from core lib, implement NIP-20 ("OK" message). 2022-11-11 09:48:11 -03:00
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
3e20e6c7cc renaming Equal -> FilterEqual 2022-01-02 09:08:05 -03:00
fiatjaf
629c9174eb update go-nostr. 2022-01-02 09:00:14 -03:00
fiatjaf
ba0d99c131 GetListenerFilters() helper and Injector interface for implementations. 2021-12-26 07:11:54 -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
694eccd0c8 small fixes and guards. 2021-02-23 00:27:16 -03:00
fiatjaf
9c992c90dc adapt to new nip-01. 2021-02-14 21:08:02 -03:00
fiatjaf
4357bd1beb fix bug when removing key from listenership. 2021-01-14 22:07:53 -03:00
fiatjaf
e9cbff07a4 migrate off of main nostr repository. 2021-01-13 23:46:06 -03:00