Commit Graph

53 Commits

Author SHA1 Message Date
Greg Heartsfield 0f276a06b2 Use notice function for sending messages 2021-11-26 10:32:14 -06:00
Greg Heartsfield 010c96b05f Moved nostr protocol handling to proto module 2021-11-26 10:17:20 -06:00
Greg Heartsfield 31057b6fd3 Rename license file 2021-11-25 21:32:53 -06:00
Greg Heartsfield 2238743c59 Don't bother breaking stream apart into read/write handles. 2021-11-25 21:00:28 -06:00
Greg Heartsfield 60319999a6 NOTICE sent for parsing errors 2021-11-25 20:31:08 -06:00
Greg Heartsfield 96f46866f7 README updates 2021-11-24 22:44:18 -06:00
Greg Heartsfield c758495de9 Querying for author/authors 2021-11-24 22:37:09 -06:00
Greg Heartsfield 580342f3a5 ReqFilter tests 2021-11-24 22:24:30 -06:00
Greg Heartsfield 89d2bcd598 Filter on additional fields (complete) 2021-11-24 22:16:11 -06:00
Greg Heartsfield 753958659d Check event tag filter 2021-11-24 22:10:42 -06:00
Greg Heartsfield c075194c3d Check for filter applicability with author(s) and kinds 2021-11-24 22:05:02 -06:00
Greg Heartsfield 296857d372 Start work on filtering events with subscriptions 2021-11-24 17:26:01 -06:00
Greg Heartsfield 03bc1fab18 API for checking if subscription matches key 2021-11-24 16:22:49 -06:00
Greg Heartsfield 5bc36cc591 Correctly replace subscriptions if ID matches 2021-11-24 16:22:28 -06:00
Greg Heartsfield 1a0f66a518 Perform subscribe/unsubscribe from websocket 2021-11-24 16:07:35 -06:00
Greg Heartsfield 2da46501ca Note/link for message propagation 2021-11-24 15:44:18 -06:00
Greg Heartsfield 6411aab7f9 Track subscription add/removes 2021-11-24 15:40:39 -06:00
Greg Heartsfield 03a46e20b0 track subscriptions in proto 2021-11-24 15:28:15 -06:00
Greg Heartsfield 433bb0f130 Rename request container enums 2021-11-24 15:22:31 -06:00
Greg Heartsfield 439174417a Correct length check for Close messages 2021-11-24 15:15:56 -06:00
Greg Heartsfield ecf2cf3094 Parse CLOSE requests 2021-11-24 14:59:45 -06:00
Greg Heartsfield a3a83722b2 Specify rust edition in rustfmt config 2021-11-24 14:44:07 -06:00
Greg Heartsfield 0bac2cbfc8 Rename request mod to subscription 2021-11-24 14:29:31 -06:00
Greg Heartsfield 0b7742cfb1 Simplify request message parsing 2021-11-24 14:24:35 -06:00
Greg Heartsfield 4e2ec93584 Successful parsing of requests from stream 2021-11-24 14:19:50 -06:00
Greg Heartsfield c001726402 Add test for request parsing 2021-11-24 13:48:40 -06:00
Greg Heartsfield 5e9fca1aeb Request parsing generally works 2021-11-24 13:33:38 -06:00
Greg Heartsfield bba66a1bce Request parsing 2021-11-24 12:25:55 -06:00
Greg Heartsfield 68a69505ac Start of protocol module 2021-11-24 12:25:38 -06:00
Greg Heartsfield 010a420465 Downgrade to 2018 edition (support rust-analyzer) 2021-11-24 09:59:00 -06:00
Greg Heartsfield bd7d083107 Work on request filter deserialization 2021-11-23 14:15:47 -06:00
Greg Heartsfield ba19c978a5 More error handling/debugging 2021-11-23 12:47:02 -06:00
Greg Heartsfield 25ac86cc68 More error handling/debugging 2021-11-23 12:35:25 -06:00
Greg Heartsfield 854531112d Wrap serde json errors 2021-11-23 11:32:19 -06:00
Greg Heartsfield 5224b9159e Structure for parsing types 2021-11-23 10:46:47 -06:00
Greg Heartsfield ae68fdd896 Error and basic protocol handling 2021-11-23 10:29:53 -06:00
Greg Heartsfield 5e75370a67 Properly deserialize tags if null 2021-11-21 22:01:34 -06:00
Greg Heartsfield d81949c31b Modules to hold error def and request/query def 2021-11-21 21:58:16 -06:00
Greg Heartsfield 116feace87 Add some (broken) deserializers and tests for json events 2021-11-21 21:57:44 -06:00
Greg Heartsfield 2d0efd8db4 Add some dependencies for dealing with crypto/bytes 2021-11-21 21:57:11 -06:00
Greg Heartsfield c2704af0d6 Simple event struct with serialization 2021-11-21 18:14:38 -06:00
Greg Heartsfield 0fe2423b22 Add license and readme 2021-11-21 17:35:58 -06:00
Greg Heartsfield b2ca2f6743 Begin modules for nostr protocol 2021-11-21 17:22:42 -06:00
Greg Heartsfield cf6171aadc Handle client messages that exceed max size 2021-11-21 16:03:03 -06:00
Greg Heartsfield dbb535eaaa Separate server and connection handling functions 2021-11-21 13:48:31 -06:00
Greg Heartsfield ee27d0c597 Warning cleanup 2021-11-21 13:32:15 -06:00
Greg Heartsfield 259c115d67 Configure tokio runtime manually 2021-11-21 13:31:23 -06:00
Greg Heartsfield efa14418fc Sample messages from a public relay 2021-11-21 09:03:34 -06:00
Greg Heartsfield 097199ae6a Do not panic on normal errors 2021-11-20 21:33:35 -06:00
Greg Heartsfield f9e30c194f Demo server (compiles) 2021-11-20 20:59:40 -06:00