Merged
Conversation
- Add new 'message.inbound' event to GATEWAY_EVENTS - Create src/infra/inbound-events.ts with pub/sub mechanism - Emit inbound message events from dispatch-from-config.ts - Subscribe to inbound events in gateway server and broadcast - Add proper cleanup in gateway close handler This allows connected WebSocket clients (e.g., dashboard) to receive real-time notifications when messages arrive on any channel (WhatsApp, Telegram, Discord, etc.) without polling. Event payload includes: - messageId, sessionKey, channel, accountId - from, senderName, content, timestamp - chatType (dm/group), conversationId, threadId - hasMedia, mediaType, metadata
lucasmpramos
added a commit
that referenced
this pull request
Mar 9, 2026
Merges 33 commits from work branch: - WhatsApp login tool HTTP invoke (openclaw#21/openclaw#25) - Audio inbound transcription for webchat (openclaw#21) - TTS audio playback in chat (openclaw#22) - /media endpoint for audio/image serving (openclaw#19) - image_generate tool with Gemini (openclaw#20) - imageReady/mediaReady event pipeline (openclaw#22) - Chat.send internal routing simplification (openclaw#23) - Silent reply filter removal (openclaw#24) - ThinkingDefault shortcut (openclaw#26) Conflict resolution: - patches/README.md: unified numbering (our #2-18 + his openclaw#19-26) - patches/verify-patches.sh: combined both check sets (24 total) - server-methods/chat.ts: used work version as base (has media pipeline), route resolution removal from openclaw#23 is intentional for webchat Build: clean. Patches: 24/24 passing. Co-authored-by: Bob
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a new Gateway WS event for real-time inbound messages (no polling). Includes a safe pub/sub emitter, gateway broadcast, and cleanup.
Notes: