WeCom Live Feed and Event Monitoring
The live feed shows incoming WeCom webhook events in real time β directly on the WeCom page, without manual refreshing.
Opening the live feedβ
- Open WeCom from the sidebar.
- The Live feed panel appears at the top of the page.
- The connection status is shown as a badge:
- π’ Connected β events are being received
- π΄ Disconnected β no connection, auto-reconnect in progress
Filtering eventsβ
The live feed panel has an event type dropdown. Select:
- All β every incoming event is shown
- A specific type (e.g.
text_message,event) β only matching events appear
Options are populated automatically from received events.
Auto-reconnectβ
If the connection drops (e.g. due to network issues), the feed reconnects automatically after 5 seconds. The badge reflects the current status.
Event table (historical)β
Below the live feed, the table shows the last 30 events from the database. Click a row or the XML button to view the full XML in the side panel.
Testing the connectionβ
Send a test event from the WeCom console:
- Open your WeCom app configuration.
- Use the "Verify" function or send a test message.
- Watch the live feed panel β the event should appear within seconds.
If no event appears:
- Check the connection badge (must be green).
- Verify the callback URL is correctly configured (see Set up WeCom callback).
- Check the IP allowlist (see WeCom IP allowlist setup).
Technical backgroundβ
The live feed uses Server-Sent Events (SSE) via GET /api/wecom/events/stream. The server sends the last 10 historical events on connect, then checks for new events every 5 seconds. The browser keeps the connection open β no polling needed.