()
| 513 | } |
| 514 | |
| 515 | async close(): Promise<void> { |
| 516 | if (this.closed) return; |
| 517 | this.closed = true; |
| 518 | try { |
| 519 | await this.rpc.closeSession({ sessionId: this.id }); |
| 520 | } finally { |
| 521 | this.rpc.clearSessionHandlers(this.id); |
| 522 | await this.onClose?.(); |
| 523 | } |
| 524 | } |
| 525 | |
| 526 | /** @internal */ |
| 527 | emitMetaUpdated(patch: { readonly title?: string | undefined }): void { |
nothing calls this directly
no test coverage detected