* Connects the session to the inspector back-end. * @returns {void}
()
| 61 | * @returns {void} |
| 62 | */ |
| 63 | connect() { |
| 64 | if (this.#connection) |
| 65 | throw new ERR_INSPECTOR_ALREADY_CONNECTED('The inspector session'); |
| 66 | this.#connection = new Connection((message) => this.#onMessage(message)); |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * Connects the session to the main thread |