feat(typing): wire client typing frames + clear on send #35

Merged
nrupard merged 1 commit from feat/typing-indicator into main 2026-05-06 02:26:20 +02:00
Owner
  • Stash htmx WS socketWrapper on window so the composer can reach it from oninput.
  • Send {type:"typing", room_id} from the composer input, throttled to one frame per 2.5s. Server hub already broadcasts UserTyping (HTML fragment swapping #typing) on the first frame and auto-evicts after 5s of silence.
  • Call hub.stop_typing in the room post_message path so the indicator clears immediately when a message lands instead of waiting for the 5s eviction.
- Stash htmx WS socketWrapper on window so the composer can reach it from oninput. - Send `{type:"typing", room_id}` from the composer input, throttled to one frame per 2.5s. Server hub already broadcasts UserTyping (HTML fragment swapping #typing) on the first frame and auto-evicts after 5s of silence. - Call hub.stop_typing in the room post_message path so the indicator clears immediately when a message lands instead of waiting for the 5s eviction.
- Stash htmx WS socketWrapper on window so the composer can reach it from oninput.
- Send `{type:"typing", room_id}` from the composer input, throttled to one frame per 2.5s. Server hub already broadcasts UserTyping (HTML fragment swapping #typing) on the first frame and auto-evicts after 5s of silence.
- Call hub.stop_typing in the room post_message path so the indicator clears immediately when a message lands instead of waiting for the 5s eviction.
nrupard deleted branch feat/typing-indicator 2026-05-06 02:26:20 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
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
psa-systems/lets-chat!35
No description provided.