Commit Graph

31 Commits

Author SHA1 Message Date
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
Greg Heartsfield
738e651574 Ignore rust build area 2021-11-20 20:59:23 -06:00
Greg Heartsfield
506b92f505 Add dependency on tokio-tungstenite for websockets 2021-11-20 20:44:32 -06:00
Greg Heartsfield
cd1bc7655c Cargo init 2021-11-20 20:28:10 -06:00