Commit Graph

  • 6155cf4059 remove nip-26. fiatjaf 2023-08-21 15:51:16 -03:00
  • 1d67a8ed87 nip44 initial implementation. fiatjaf 2023-08-18 13:27:55 -03:00
  • ac2350c722 style: using effective go and refactoring Kay 2023-08-21 20:17:25 +08:00
  • abb66db97e fix filter tests. v0.20.0 fiatjaf 2023-08-06 20:03:05 -03:00
  • 5a51f84433 pool.QuerySingle() fiatjaf 2023-08-06 19:57:08 -03:00
  • b522d24c30 use a named lock instead of a single per-pool mutex. fiatjaf 2023-08-06 19:54:30 -03:00
  • 2e9cdc8255 dependencies from unsafe conversion stuff. fiatjaf 2023-08-06 19:54:17 -03:00
  • 017816e3dc stop supporting prefix matches. fiatjaf 2023-08-05 10:12:57 -03:00
  • 35faff858a reuse buffer when reading messages from websocket. fiatjaf 2023-07-30 17:12:30 -03:00
  • cfcd19568b unsafe string/bytes conversion on nson. fiatjaf 2023-07-30 17:03:25 -03:00
  • 8bdbcc93eb remove useless util. fiatjaf 2023-07-28 20:53:59 -03:00
  • 53b9dde6e0 relay.Count() v0.19.5 fiatjaf 2023-07-18 16:17:00 -03:00
  • 41480fddda Update subscription.go sweep/fix-goroutine-halting sweep-ai[bot] 2023-07-15 18:59:28 +00:00
  • 2f368c783a Update relay.go sweep-ai[bot] 2023-07-15 18:58:53 +00:00
  • 2e44d67e41 Create sweep.yaml config file sweep/add-sweep-config sweep-ai[bot] 2023-07-15 18:56:13 +00:00
  • 6cee628149 rename debugLog->debugLogf v0.19.4 fiatjaf 2023-07-11 15:25:02 -03:00
  • c03c028142 fix: don't stop reading the websocket for no reason! fiatjaf 2023-07-11 15:23:48 -03:00
  • 6e79f72174 prevent halting in some other places. fiatjaf 2023-07-11 11:04:48 -03:00
  • f6dddfd770 CountEnvelope. fiatjaf 2023-07-10 20:52:49 -03:00
  • c0c20b8401 validate and normalize relay urls received from kind 3 and 10002. v0.19.3 fiatjaf 2023-07-08 08:16:30 -03:00
  • 82a51f149a prevent halting on SubManyEose. fiatjaf 2023-07-08 08:15:34 -03:00
  • 9b2b3b9039 inbox-outbox relay barebones helpers on sdk package. fiatjaf 2023-07-08 07:50:54 -03:00
  • 62e0068373 add readme. v0.19.2 fiatjaf 2023-07-05 13:50:41 -03:00
  • cfdfba3bdd add benchmarks. fiatjaf 2023-07-05 13:48:14 -03:00
  • 7ba3844a6f nson: test encoder with events from the wild. fiatjaf 2023-07-05 08:42:36 -03:00
  • 6f03e6b82c nson: more test events. fiatjaf 2023-07-05 08:27:00 -03:00
  • db22f132f4 nson: assign constants and fix bugs so tests pass. fiatjaf 2023-07-04 20:32:06 -03:00
  • f55bb2f07b porting nson from nostr-benchmarks codebase. fiatjaf 2023-07-04 18:17:31 -03:00
  • 16580f3e84 InsertEventIntoDescendingList() helper. fiatjaf 2023-07-04 17:57:21 -03:00
  • f06dd6b6fb nip29 event kinds. nip29 fiatjaf 2023-06-26 21:02:14 -03:00
  • 6b625f7896 handle OK callbacks properly when there is not a "reason" (which is the expected behavior). v0.19.1 fiatjaf 2023-06-26 21:00:33 -03:00
  • 21c6f34b51 nip29 event kinds. fiatjaf 2023-06-24 15:13:56 -03:00
  • 1f38213b3f update auth example on readme to v0.19 fiatjaf 2023-06-25 18:01:25 -03:00
  • 71f4594033 wait when CLOSEing. v0.19.0 fiatjaf 2023-06-25 12:56:17 -03:00
  • 3b44ab9381 refactor these tests to ensure nested subscriptions are not blocking each other. fiatjaf 2023-06-25 00:17:57 -03:00
  • 54d3de4908 refactor some things, add back one mutex for each subscription for dispatching events, but in a cleaner way. fiatjaf 2023-06-25 00:17:39 -03:00
  • a7964ae675 nested subscription test. fiatjaf 2023-06-24 21:02:12 -03:00
  • ac0c0769fe disentangle things a little more. fiatjaf 2023-06-23 16:22:57 -03:00
  • f0a35d7ab2 Write returns an error in a channel (why? I think it makes no difference.) fiatjaf 2023-06-22 10:46:31 -03:00
  • f78270765d prevent halting when a relay gets disconnected. fiatjaf 2023-06-22 10:45:45 -03:00
  • fd409f6c35 add closure queue channel that was missing. fiatjaf 2023-06-22 09:32:12 -03:00
  • 68648a16b9 remove conn field from subscription. fiatjaf 2023-06-22 09:12:35 -03:00
  • 030c1d1898 get rid of mutexes and use a single loop to prevent races. fiatjaf 2023-06-21 19:55:40 -03:00
  • af4fc98fc2 stop decoding strings unsafely. v0.18.12 fiatjaf 2023-06-21 13:03:43 -03:00
  • b984a598cb Fix panic in ParseMessage v0.18.11 boreq 2023-06-20 14:05:57 +02:00
  • f4102ea8d2 add icon to RelayInformationDocument Yasuhiro Matsumoto 2023-06-20 23:55:23 +09:00
  • 5bbb6ba05b add empty tags field if nil before signing. fiatjaf 2023-06-13 09:36:38 -03:00
  • 58d56abe05 fix: removing redundancy Isaque Veras 2023-06-11 10:48:46 -03:00
  • ee8f58360f print all filters when doesn't match. fiatjaf 2023-06-09 16:11:16 -03:00
  • f37eb96f28 rename KindBoost to KindRepost. v0.18.10 fiatjaf 2023-06-09 13:54:07 -03:00
  • a80965425b comment out info log for when we get an event outside of a subscription. fiatjaf 2023-06-09 13:49:27 -03:00
  • bc783a3a24 fix atomicity of subscription ids. v0.18.9 fiatjaf 2023-06-09 11:01:42 -03:00
  • b7ec430166 Fix GetImmediateReply v0.18.8 Daniele Tonon 2023-05-31 00:10:37 +02:00
  • 9cafea7e2a ensure relay context and subscriptions are closed when we lose connectivity. v0.18.7 fiatjaf 2023-05-30 17:44:25 -03:00
  • 19d96e3566 close SubMany channel when all underlying subscriptions die. fiatjaf 2023-05-30 16:11:33 -03:00
  • a2941876e3 expose subscriptions from relay and keep that updated. v0.18.6 fiatjaf 2023-05-30 14:55:44 -03:00
  • 0f7a3f01f2 use an atomic counter. fiatjaf 2023-05-30 14:01:07 -03:00
  • 39f09e6bb9 replace generic-sync-map with xsync. fiatjaf 2023-05-30 13:52:14 -03:00
  • ad0f73fa9c ensure subscription dies if the relay connection dies. fiatjaf 2023-05-30 13:47:47 -03:00
  • 5cead32fbe remove extra subscription after publishing an event to check if it is there. fiatjaf 2023-05-30 13:45:05 -03:00
  • 1cd2c0293d add a bunch more of event kinds. fiatjaf 2023-05-28 15:44:17 -03:00
  • b269dd9ce9 sdk: return start and end on references for replacement. v0.18.5 fiatjaf 2023-05-26 18:04:36 -03:00
  • 5c0f8bff83 Add fields to ProfileMetadata v0.18.4 Daniele Tonon 2023-05-25 13:00:17 +02:00
  • 123d3a6a9a Add error capture to authentication status in relay.Auth starcorn2020 2023-05-14 21:02:18 +08:00
  • fa00133825 websocket to send text, not binary. v0.18.3 fiatjaf 2023-05-11 10:09:43 -03:00
  • 0c06788672 oops: stop replacing connectionContext with Connect(ctx). v0.18.2 fiatjaf 2023-05-10 09:07:51 -03:00
  • 9dc674bc02 use different contexts for the relay connection lifetime and the Connect() call. v0.18.1 fiatjaf 2023-05-09 17:08:04 -03:00
  • ccbb44989f get rid of WriteJSON() and replace calls with manually marshaled envelopes. fiatjaf 2023-05-09 17:02:22 -03:00
  • d36fbb95b9 ParseMessage() returns an Envelope, use that on the main relay handler loop. fiatjaf 2023-05-09 16:55:21 -03:00
  • f7ce78d7f8 add custom envelope types with json codecs. fiatjaf 2023-05-09 16:31:10 -03:00
  • 52a493fd96 EnsureRelay() returns an error. fiatjaf 2023-05-09 00:08:06 -03:00
  • 6c186812c9 fix readme code example shota3506 2023-05-07 14:28:54 +09:00
  • 96f3d4c9a0 fix event comparison in EventSerialization test shota3506 2023-05-07 14:59:21 +09:00
  • c0a42ff2ff SimplePool improvements. fiatjaf 2023-05-06 14:32:39 -03:00
  • 2b2c000d6a Merge pull request #81 from wozuo/master v0.18.0 fiatjaf_ 2023-05-05 21:06:07 -03:00
  • 69b9d82bb1 check if messages are compressed on receive Marc Tarnutzer 2023-05-06 01:48:01 +02:00
  • 98a2a39521 add SimplePool. fiatjaf 2023-05-05 19:05:11 -03:00
  • c86e907142 enable compression by default Marc Tarnutzer 2023-05-05 22:00:25 +02:00
  • ee9502bc3e fix: outgoing pings Marc Tarnutzer 2023-05-05 12:14:29 +02:00
  • f152a5e0c7 simplify connection close Marc Tarnutzer 2023-05-04 23:54:39 +02:00
  • 9c01ead91f switch to gobwas/ws, add compression Marc Tarnutzer 2023-05-04 23:51:15 +02:00
  • 1c118cd83e take context.Context for nip-05 resolving. fiatjaf 2023-05-04 13:20:15 -03:00
  • 53e0935308 parse kind in nevent. v0.17.3 v0.17.2 fiatjaf 2023-05-04 08:24:39 -03:00
  • 6fc1627fcc json tags on pointers. fiatjaf 2023-05-04 08:22:17 -03:00
  • 32ca737acf remove unused ping handler (it is done automatically). v0.17.1 fiatjaf 2023-04-26 08:12:05 -03:00
  • ebae5d41e6 Add most NIP-11 extension structures to the RelayInformationDocument struct. (#80) Patrick Bennett 2023-04-26 07:06:05 -04:00
  • 3838ed7e91 guard ping writes with the mutex. fiatjaf 2023-04-26 08:04:47 -03:00
  • b077a41f83 Fix race condition on status in Relay.Publish method and failure to send Patrick Bennett 2023-04-21 00:10:11 -04:00
  • 9b89a49e5e cancel relay context when calling .Close(). fiatjaf 2023-04-21 07:45:23 -03:00
  • 3785daf8aa normalize relay url from Tag.Relay(). v0.17.0 fiatjaf 2023-04-19 14:40:44 -03:00
  • fc7b20114b update readme and example. fiatjaf 2023-04-16 16:25:25 -03:00
  • 2695854e56 fixing json filter json + marshaling filter tags. fiatjaf 2023-04-16 16:19:24 -03:00
  • c42059f4b4 tests run (but not pass) and fine-tuning (specially tag filters) on filter_easyjson.go fiatjaf 2023-04-16 16:12:42 -03:00
  • 0a3e898c2f using easyjson. fiatjaf 2023-04-16 15:56:50 -03:00
  • af52f8d490 debug log events received. v0.16.12 fiatjaf 2023-04-14 10:07:10 -03:00
  • 326d2790de rename interface{} to any. v0.16.11 fiatjaf 2023-04-12 12:14:24 -03:00
  • ec3f1287c4 debug log CLOSE messages. fiatjaf 2023-04-12 12:14:16 -03:00
  • 2314db57a1 tweak timeouts on Publish() v0.16.10 fiatjaf 2023-04-11 15:33:29 -03:00
  • dd692560ff fill in event pubkey when signing. fiatjaf 2023-04-11 15:33:13 -03:00
  • 32768b1a5b improve debug logging, fix stringer interface, debuglog events sent, fix debuglogging affecting the actual values. v0.16.9 fiatjaf 2023-04-11 11:02:35 -03:00