new Index(_webSocketUrl)
Create a new websocket connection
Parameters:
Name | Type | Description |
---|---|---|
_webSocketUrl |
- Source
Members
isConnected
- Source
socket
- Source
status
Get Bidi Status
- Source
Methods
close() → {Promise.<unknown>}
Close ws connection.
- Source
Returns:
- Type:
- Promise.<unknown>
(async) send(params) → {Promise.<unknown>}
Sends a bidi request
Parameters:
Name | Type | Description |
---|---|---|
params |
- Source
Returns:
- Type:
- Promise.<unknown>
(async) subscribe(events, browsingContexts) → {Promise.<void>}
Subscribe to events
Parameters:
Name | Type | Description |
---|---|---|
events | ||
browsingContexts |
- Source
Returns:
- Type:
- Promise.<void>
(async) unsubscribe(events, browsingContexts) → {Promise.<void>}
Unsubscribe to events
Parameters:
Name | Type | Description |
---|---|---|
events | ||
browsingContexts |
- Source
Returns:
- Type:
- Promise.<void>
(async) waitForConnection() → {Promise.<unknown>}
Resolve connection
- Source
Returns:
- Type:
- Promise.<unknown>