Commit Graph

10 Commits

Author SHA1 Message Date
fiatjaf
7289da9c72 improve/refactor websocket connections hoping this will fix the undetected disconnections we're seeing.
this commit also remove all the sonic envelope parsing and reintroduces filters in REQ as a slice instead of as a singleton.

why? well, the sonic stuff wasn't really that fast, it was a little bit but only got fast enough once I introduced unsafe conversions between []byte and string and did weird unsafe reuse of []byte in order to save the values of tags, which would definitely cause issues in the future if the caller wasn't aware of it (and even if they were, like myself).

and the filters stuff is because we abandoned the idea of changing NIP-01 to only accept one filter per REQ.
2025-07-10 22:58:37 -03:00
fiatjaf
15c6093c9b define a nostr.Kind type for event kinds, make adjustments everywhere and fix some horrible bugs with mmm, lmdb and badger querying and deleting. 2025-04-20 11:15:41 -03:00
fiatjaf
32efaa7c58 tests on root and khatru working. 2025-04-17 20:30:44 -03:00
fiatjaf
b4268d649c a bunch of [32]byte conversions. still more needed. 2025-04-14 17:47:53 -03:00
fiatjaf
c15904ba7b change relay for COUNT test. 2025-03-10 02:33:47 -03:00
fiatjaf
2dba8fc3e0 fix count test from hll breaking change. 2024-12-17 13:31:53 -03:00
kehiy
47243fdcc4 feat(event): adding more helpers. 2024-09-19 11:34:31 -03:00
K
c91e7b9765 using testify instead of testing.T methods. (#143) 2024-09-09 07:20:56 -03:00
Isaque Veras
0f66883dc7 feat(kind): using constants 2023-09-07 07:05:01 -03:00
fiatjaf
53b9dde6e0 relay.Count() 2023-07-18 16:17:00 -03:00