(notification: unknown)
| 2577 | } |
| 2578 | |
| 2579 | private handleSessionEventNotification(notification: unknown): void { |
| 2580 | if ( |
| 2581 | typeof notification !== "object" || |
| 2582 | !notification || |
| 2583 | !("sessionId" in notification) || |
| 2584 | typeof (notification as { sessionId?: unknown }).sessionId !== "string" || |
| 2585 | !("event" in notification) |
| 2586 | ) { |
| 2587 | return; |
| 2588 | } |
| 2589 | |
| 2590 | const session = this.sessions.get((notification as { sessionId: string }).sessionId); |
| 2591 | if (session) { |
| 2592 | session._dispatchEvent((notification as { event: SessionEvent }).event); |
| 2593 | } |
| 2594 | } |
| 2595 | |
| 2596 | private handleSessionLifecycleNotification(notification: unknown): void { |
| 2597 | if ( |
no test coverage detected