Index

new Index(_webSocketUrl)

Create a new websocket connection

Parameters:
NameTypeDescription
_webSocketUrl

Members

isConnected

socket

status

Get Bidi Status

Methods

close() → {Promise.<unknown>}

Close ws connection.

Returns:
Type: 
Promise.<unknown>

(async) send(params) → {Promise.<unknown>}

Sends a bidi request

Parameters:
NameTypeDescription
params
Returns:
Type: 
Promise.<unknown>

(async) subscribe(events, browsingContexts) → {Promise.<void>}

Subscribe to events

Parameters:
NameTypeDescription
events
browsingContexts
Returns:
Type: 
Promise.<void>

(async) unsubscribe(events, browsingContexts) → {Promise.<void>}

Unsubscribe to events

Parameters:
NameTypeDescription
events
browsingContexts
Returns:
Type: 
Promise.<void>

(async) waitForConnection() → {Promise.<unknown>}

Resolve connection

Returns:
Type: 
Promise.<unknown>