new CriConnection(portopt, hostnameopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
port |
number
|
<optional> |
Optional port number. Defaults to 9222; |
hostname |
string
|
<optional> |
Optional hostname. Defaults to localhost. |
Methods
_connectToSocket(responsenon-null) → (non-null) {Promise}
Parameters:
Name | Type | Description |
---|---|---|
response |
Object
|
Returns:
- Type:
-
Promise
_runJsonCommand(commandnon-null) → (non-null) {Promise.<string>}
Parameters:
Name | Type | Description |
---|---|---|
command |
string
|
Returns:
- Type:
-
Promise.<string>
connect() → (non-null) {Promise}
Returns:
- Type:
-
Promise
disconnect()
sendRawMessage(message)
Parameters:
Name | Type | Description |
---|---|---|
message |
string
|