Expand description
Room chat: one more broadcast every member publishes into the room.
The broadcast is named NAME and carries a chat track, a JSON window
of the last ten seconds of messages, which @moq/room reads too.
Chat is the whole thing in one handle: it publishes this member’s chat,
reads every other member’s, and hands their messages over through
Chat::try_recv or Chat::recv. Chat::split parts it into the
Writer and the Messages, for an application that sends from one
place and receives in another.
Structs§
- Chat
- This member’s chat in a room, and every other member’s.
- Message
- A message another member sent.
- Messages
- The messages other members send, from
Chat::split. - Writer
- This member’s chat broadcast, and the task that writes and expires it.
Constants§
- NAME
- The name of the chat broadcast.