Commit Graph

21 Commits

Author SHA1 Message Date
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