DTM TRAFFIC, SESSION EVENTS 로그 개선

- Receiver에 expected packet type 필드 제거
- 로그 아래로 쌓기
- Clear 버튼 추가
- Trasmitter 세션에서는 packet report 숨김
This commit is contained in:
2026-05-20 11:05:28 +09:00
parent fadeba40cc
commit 1bf60d01f3
4 changed files with 250 additions and 125 deletions
+4 -1
View File
@@ -189,9 +189,9 @@ const attachEvents = (sessionId, instance) => {
emitForSession(sessionId, {
type: 'ended',
channel: event.channel,
packets: event.packets ?? 0,
mode: event.type,
data: [...status.lastReceived],
...(typeof event.packets === 'number' ? { packets: event.packets } : {}),
});
});
@@ -210,6 +210,9 @@ const attachEvents = (sessionId, instance) => {
});
instance.onTraffic(event => {
if (sessionId === 'transmitter' && event.kind === 'packetReport') {
return;
}
emitForSession(sessionId, {
type: 'traffic',
direction: event.direction,