MCPcopy Create free account
hub / github.com/bywwcnll/StreamPanel / getCurrentConnectionExportData

Function getCurrentConnectionExportData

devtools/panel.bundle.js:2527–2548  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2525 }
2526
2527 function getCurrentConnectionExportData() {
2528 const connection = state.connections[state.selectedConnectionId];
2529 if (!connection) {
2530 return null;
2531 }
2532
2533 const messages = getVisibleMessages(connection.messages);
2534
2535 return {
2536 connection: getConnectionExportInfo(connection),
2537 messages: messages.map(msg => ({
2538 id: msg.id,
2539 eventType: msg.eventType,
2540 data: msg.data,
2541 lastEventId: msg.lastEventId,
2542 timestamp: formatTimestampForExport(msg.timestamp)
2543 })),
2544 exportedAt: new Date().toISOString(),
2545 totalMessages: messages.length,
2546 appliedFilters: getAppliedFiltersMetadata()
2547 };
2548 }
2549
2550 function getAllConnectionsExportData() {
2551 const connections = Object.values(state.connections);

Callers 1

handleExportFunction · 0.70

Calls 4

getVisibleMessagesFunction · 0.70
getConnectionExportInfoFunction · 0.70
formatTimestampForExportFunction · 0.70

Tested by

no test coverage detected