* Initiates bidi connection using 'webSocketUrl' * @returns {BIDI}
()
| 1306 | * @returns {BIDI} |
| 1307 | */ |
| 1308 | async getBidi() { |
| 1309 | if (this._bidiConnection === undefined) { |
| 1310 | const caps = await this.getCapabilities() |
| 1311 | let WebSocketUrl = caps['map_'].get('webSocketUrl') |
| 1312 | this._bidiConnection = new BIDI(WebSocketUrl.replace('localhost', '127.0.0.1')) |
| 1313 | } |
| 1314 | return this._bidiConnection |
| 1315 | } |
| 1316 | |
| 1317 | /** |
| 1318 | * Retrieves 'webSocketDebuggerUrl' by sending a http request using debugger address |