Typing indicators #10

Open
opened 2023-03-28 04:45:46 +00:00 by kirsle · 0 comments
Owner
  1. On keypress in the message box (with a debounce to not spam), send a typing message to the server with the current selected channel name.
  2. ChatServer broadcasts the typing event to the whole channel carrying the username.
  3. On receiving typing events the front-end can show whether people are typing, and these typing events should auto-expire on the front-end (e.g., after 10 seconds)

In DM threads say: "soandso is typing..."

In public chat rooms: if one person is typing say "soandso is typing...", if multiple could say "3 people are typing".

Frontend logic to store/expire pings could be:

  • onTyping() - if a user is typing a novel over there you may get a typing event every second or two and start a timeout from the final typing event for like 10 seconds out.
1. On keypress in the message box (with a debounce to not spam), send a `typing` message to the server with the current selected channel name. 2. ChatServer broadcasts the `typing` event to the whole channel carrying the username. 3. On receiving `typing` events the front-end can show whether people are typing, and these `typing` events should auto-expire on the front-end (e.g., after 10 seconds) In DM threads say: "soandso is typing..." In public chat rooms: if one person is typing say "soandso is typing...", if multiple could say "3 people are typing". Frontend logic to store/expire pings could be: * onTyping() - if a user is typing a novel over there you may get a `typing` event every second or two and start a timeout from the final `typing` event for like 10 seconds out.
kirsle added the
enhancement
label 2023-03-28 04:45:46 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: apps/BareRTC#10
No description provided.