(listener: (event: Event) => void)
| 83 | } |
| 84 | |
| 85 | onEvent(listener: (event: Event) => void): Unsubscribe { |
| 86 | this.ensureOpen(); |
| 87 | return this.rpc.onEvent((event) => { |
| 88 | if (event.sessionId === this.id) { |
| 89 | listener(event); |
| 90 | } |
| 91 | }); |
| 92 | } |
| 93 | |
| 94 | setApprovalHandler(handler: ApprovalHandler | undefined): void { |
| 95 | this.ensureOpen(); |
nothing calls this directly
no test coverage detected