465 Commits

Author SHA1 Message Date
fiatjaf
7d1091b66b
fix a stupid bool. v0.24.1 2023-10-02 14:46:19 -03:00
fiatjaf
e45921c11a
pool.SubMany(Eose)NonUnique() v0.24.0 2023-10-02 14:16:16 -03:00
fiatjaf
c68e876b05
RemoveExtra() 2023-10-02 12:26:34 -03:00
fiatjaf
1c4a64d2a1
improve warning on readme. v0.23.1 2023-10-02 09:16:27 -03:00
fiatjaf
bc5c0aa4a1
just scripts for checking if all is ok. 2023-10-02 09:14:09 -03:00
fiatjaf
553c7f245a
remove nip26 test. 2023-10-02 09:13:49 -03:00
fiatjaf
a0f6dec451
fix sdk. 2023-10-02 09:13:36 -03:00
fiatjaf
978d7825b5
return IncomingEvent struct from SimplePool methods containing the relay. v0.23.0 2023-09-30 19:16:30 -03:00
fiatjaf
18cee7421a
fix xsync counter initialization. v0.22.1 2023-09-16 07:51:44 -03:00
Yasuhiro Matsumoto
e55f5492ab fix typos 2023-09-11 15:57:05 -03:00
Isaque Veras
0f66883dc7 feat(kind): using constants 2023-09-07 07:05:01 -03:00
fiatjaf
eef7c40dc7
migrate to xsync v2. v0.22.0 2023-09-04 16:44:36 -03:00
fiatjaf
1f605f3629
remove intermediary .events channel and hacky ms sleep. 2023-09-04 08:57:53 -03:00
fiatjaf
6d1875de46
ensure eose channel closes after events have been emitted. 2023-09-04 08:33:31 -03:00
fiatjaf
4c50cce79c
add the same warnings in Subscribe and PrepareSubscription help comments. v0.21.2 2023-08-31 09:27:20 -03:00
fiatjaf
b8eeb658cc
add size validation to nip19 decoder. 2023-08-31 09:25:09 -03:00
fiatjaf
63614bb152
add goroutine leak warning. 2023-08-31 09:18:48 -03:00
fiatjaf
446b104990
simplify subscription closing. v0.21.1 2023-08-22 10:58:34 -03:00
fiatjaf
cd86ee2514
fixes on nip-44 and test vectors. v0.21.0 2023-08-21 16:21:39 -03:00
fiatjaf
c5bf5892c3
release sub.Events lock when subscription is canceled. 2023-08-21 15:53:27 -03:00
fiatjaf
61cd3130fd
remove unnecessary json tags from cc5979c. 2023-08-21 15:53:03 -03:00
fiatjaf
6155cf4059
remove nip-26. 2023-08-21 15:51:16 -03:00
fiatjaf
1d67a8ed87
nip44 initial implementation. 2023-08-21 15:50:42 -03:00
Kay
ac2350c722 style: using effective go and refactoring 2023-08-21 15:50:05 -03:00
fiatjaf
abb66db97e
fix filter tests. v0.20.0 2023-08-06 20:03:05 -03:00
fiatjaf
5a51f84433
pool.QuerySingle() 2023-08-06 19:57:08 -03:00
fiatjaf
b522d24c30
use a named lock instead of a single per-pool mutex. 2023-08-06 19:54:30 -03:00
fiatjaf
2e9cdc8255
dependencies from unsafe conversion stuff. 2023-08-06 19:54:17 -03:00
fiatjaf
017816e3dc
stop supporting prefix matches. 2023-08-05 10:12:57 -03:00
fiatjaf
35faff858a
reuse buffer when reading messages from websocket. 2023-07-30 17:12:30 -03:00
fiatjaf
cfcd19568b
unsafe string/bytes conversion on nson. 2023-07-30 17:03:25 -03:00
fiatjaf
8bdbcc93eb
remove useless util. 2023-07-28 20:53:59 -03:00
fiatjaf
53b9dde6e0
relay.Count() v0.19.5 2023-07-18 16:17:00 -03:00
fiatjaf
6cee628149
rename debugLog->debugLogf v0.19.4 2023-07-11 15:25:02 -03:00
fiatjaf
c03c028142
fix: don't stop reading the websocket for no reason! 2023-07-11 15:23:48 -03:00
fiatjaf
6e79f72174
prevent halting in some other places. 2023-07-11 11:04:48 -03:00
fiatjaf
f6dddfd770
CountEnvelope. 2023-07-10 20:52:49 -03:00
fiatjaf
c0c20b8401
validate and normalize relay urls received from kind 3 and 10002. v0.19.3 2023-07-08 08:16:30 -03:00
fiatjaf
82a51f149a
prevent halting on SubManyEose. 2023-07-08 08:15:34 -03:00
fiatjaf
9b2b3b9039
inbox-outbox relay barebones helpers on sdk package. 2023-07-08 07:50:54 -03:00
fiatjaf
62e0068373
add readme. v0.19.2 2023-07-05 13:50:41 -03:00
fiatjaf
cfdfba3bdd
add benchmarks. 2023-07-05 13:48:14 -03:00
fiatjaf
7ba3844a6f
nson: test encoder with events from the wild. 2023-07-05 13:30:19 -03:00
fiatjaf
6f03e6b82c
nson: more test events. 2023-07-05 08:27:02 -03:00
fiatjaf
db22f132f4
nson: assign constants and fix bugs so tests pass. 2023-07-04 20:33:50 -03:00
fiatjaf
f55bb2f07b
porting nson from nostr-benchmarks codebase. 2023-07-04 18:17:31 -03:00
fiatjaf
16580f3e84
InsertEventIntoDescendingList() helper. 2023-07-04 17:57:43 -03:00
fiatjaf
6b625f7896
handle OK callbacks properly when there is not a "reason" (which is the expected behavior). v0.19.1 2023-06-26 21:00:39 -03:00
fiatjaf
1f38213b3f
update auth example on readme to v0.19 2023-06-25 18:01:25 -03:00
fiatjaf
71f4594033
wait when CLOSEing. v0.19.0 2023-06-25 12:56:17 -03:00