Getting Started Example Chat Server is Pretty Advanced
Currently the getting started example is a chat server that includes several concepts that have yet to be explained like codecs. Would it better for readers if the example only used concepts explained in the guide? What could we replace the example with?
@rylev Maybe switch to a client example (#40). The chat example can be moved to the transport section then?
I agree with @rylev the chat example chat.rs contains lots of new concepts and chat-combinator.rs is not intuitive. I think we should first identify main actors, tasks and futures and then define they relationship. after that we should implement each task and connect them with channels clearly.
for example in a chat system there are following tasks:
- A task for accepting new client connection
- A task for reading from client socket and broadcast to other client tasks via message channel
- A task for reading form message channel and send data to client via client socket