Closed david415 closed 1 month ago
I suspect you'll need to add tokio::run(server)
. as the last line. The serve.for_each(...)
part is creating a new Stream
, which needs to be spawned on a runtime: https://tokio.rs/docs/getting-started/hello-world/
(I agree though, that the example should include that line)
Although I guess #20 is relevant here.
I just tested client and server examples on latest and everything worked
I'd like to be able to use the lower level api for servers as is described in this source code comment: https://github.com/softprops/hyperlocal/blob/master/src/server/mod.rs#L163-L207
Below i added a main function for that example code.... and.... it doesn't work. It compiles. It runs and exits immediately.