[GH-ISSUE #54] Paired Clients SSE Events #25

Closed
opened 2026-10-15 13:01:40 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @salty2011 on GitHub (Jul 16, 2025).
Original GitHub issue: https://github.com/games-on-whales/wolfmanager/issues/54

Paired clients currently do not display any of the sse events. definitions for the events have been added into wolf already, just needs to have UI plumbing added so that that update as expected

Listing of the wolf events can be found in
src/lib/services/wolf-event.service.ts

This had already been implemented, in the Paired Clients pane on the clients page the "Last Seen" and "Status" do not update when a client connects. Status just says unknown even when client has connected. Its possible the SSE event generated that has the client id is not being match to the wolf_client_id further investigation is required

As the same time the following error appear in the console, indicating that the capability appears to have been added but isnt working as expected.

wolf-admin-1  | TypeError: Cannot read properties of undefined (reading 'length')
wolf-admin-1  |     at E.processEvent (/app/.next/server/chunks/3594.js:1:6914)
wolf-admin-1  |     at IncomingMessage.<anonymous> (/app/.next/server/chunks/3594.js:1:2161)
wolf-admin-1  |     at IncomingMessage.emit (node:events:524:28)
wolf-admin-1  |     at addChunk (node:internal/streams/readable:561:12)
wolf-admin-1  |     at readableAddChunkPushByteMode (node:internal/streams/readable:512:3)
wolf-admin-1  |     at Readable.push (node:internal/streams/readable:392:5)
wolf-admin-1  |     at HTTPParser.parserOnBody (node:_http_common:130:24)
wolf-admin-1  |     at HTTPParser.callbackTrampoline (node:internal/async_hooks:130:17)
wolf-admin-1  |     at Socket.socketOnData (node:_http_client:544:22)
wolf-admin-1  |     at Socket.emit (node:events:524:28)
Originally created by @salty2011 on GitHub (Jul 16, 2025). Original GitHub issue: https://github.com/games-on-whales/wolfmanager/issues/54 Paired clients currently do not display any of the sse events. definitions for the events have been added into wolf already, just needs to have UI plumbing added so that that update as expected Listing of the wolf events can be found in src/lib/services/wolf-event.service.ts This had already been implemented, in the Paired Clients pane on the clients page the "Last Seen" and "Status" do not update when a client connects. Status just says unknown even when client has connected. Its possible the SSE event generated that has the client id is not being match to the wolf_client_id further investigation is required As the same time the following error appear in the console, indicating that the capability appears to have been added but isnt working as expected. ``` wolf-admin-1 | TypeError: Cannot read properties of undefined (reading 'length') wolf-admin-1 | at E.processEvent (/app/.next/server/chunks/3594.js:1:6914) wolf-admin-1 | at IncomingMessage.<anonymous> (/app/.next/server/chunks/3594.js:1:2161) wolf-admin-1 | at IncomingMessage.emit (node:events:524:28) wolf-admin-1 | at addChunk (node:internal/streams/readable:561:12) wolf-admin-1 | at readableAddChunkPushByteMode (node:internal/streams/readable:512:3) wolf-admin-1 | at Readable.push (node:internal/streams/readable:392:5) wolf-admin-1 | at HTTPParser.parserOnBody (node:_http_common:130:24) wolf-admin-1 | at HTTPParser.callbackTrampoline (node:internal/async_hooks:130:17) wolf-admin-1 | at Socket.socketOnData (node:_http_client:544:22) wolf-admin-1 | at Socket.emit (node:events:524:28) ```
bsakaguchi 2026-10-15 13:01:40 +00:00
Author
Owner

@salty2011 commented on GitHub (Jul 21, 2025):

Issue Resolved ✅

This issue has been resolved in PR #55 which has been merged into release/202507.001.

Changes Made:

  • Fixed SSE event processing for paired clients
  • Implemented realtime status updates showing Online, Paused, or Offline status
  • Fixed the TypeError related to undefined properties in event processing
  • Enhanced client synchronization to properly match wolf_client_id with SSE events
  • Updated UI components to display realtime status updates

Files Modified:

  • src/app/api/client-events/route.ts
  • src/app/clients/actions/synchronization.ts
  • src/app/clients/components/ClientPageContent.tsx
  • src/app/clients/components/PairedClientsCard.tsx
  • src/lib/services/wolf-event.service.ts

Paired clients now properly display realtime status updates and the "Last Seen" information updates correctly when clients connect/disconnect.

<!-- gh-comment-id:3094943798 --> @salty2011 commented on GitHub (Jul 21, 2025): ## Issue Resolved ✅ This issue has been resolved in PR #55 which has been merged into `release/202507.001`. ### Changes Made: - Fixed SSE event processing for paired clients - Implemented realtime status updates showing Online, Paused, or Offline status - Fixed the TypeError related to undefined properties in event processing - Enhanced client synchronization to properly match wolf_client_id with SSE events - Updated UI components to display realtime status updates ### Files Modified: - `src/app/api/client-events/route.ts` - `src/app/clients/actions/synchronization.ts` - `src/app/clients/components/ClientPageContent.tsx` - `src/app/clients/components/PairedClientsCard.tsx` - `src/lib/services/wolf-event.service.ts` Paired clients now properly display realtime status updates and the "Last Seen" information updates correctly when clients connect/disconnect.
Sign in to join this conversation.
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
games-on-whales/wolfmanager#25
No description provided.