MCPcopy Index your code
hub / github.com/github/copilot-sdk / handleSessionEventNotification

Method handleSessionEventNotification

nodejs/src/client.ts:2579–2594  ·  view source on GitHub ↗
(notification: unknown)

Source from the content-addressed store, hash-verified

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 (

Callers 1

Calls 2

_dispatchEventMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected