new ControlReply(parsedReplyopt)
Wraps a parsed reply forom the control port.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
parsedReply | object | <optional> | Parsed reply object. |
- Source
Methods
(static) ADD_ONION(output) → {AddOnionResult}
Parses the response from the ADD_ONION module:bulb/replies~ControlReply~AddOnionResult
Parameters:
Name | Type | Description |
---|---|---|
output | Array.<string> |
- Source
Returns:
- Type:
- AddOnionResult
(static) AUTHCHALLENGE(output) → {module:bulb/replies~ControlReply~AuthChallengeResult}
Parses the reply from the AUTHCHALLENGE module:bulb/commands~ControlCommand.
Parameters:
Name | Type | Description |
---|---|---|
output | Array.<string> |
- Source
Returns:
(static) GETCONF(output) → {module:bulb/replies~ControlReply~GetConfigResult}
Parses the result of the GETCONF module:bulb/commands~ControlCommand.
Parameters:
Name | Type | Description |
---|---|---|
output | Array.<string> |
- Source
Returns:
(static) GETINFO(output) → {module:bulb/replies~ControlReply~GetInfoResult}
Parses the result of the GETINFO module:bulb/commands~ControlCommand.
Parameters:
Name | Type | Description |
---|---|---|
output | Array.<string> |
- Source
Returns:
- Type:
- module:bulb/replies~ControlReply~GetInfoResult
(static) PROTOCOLINFO(output) → {module:bulb/replies~ControlReply~ProtocolInfoResult}
Parses the reply from the PROTOCOLINFO module:bulb/commands~ControlCommand.
Parameters:
Name | Type | Description |
---|---|---|
output | Array.<string> |
- Source
Returns:
Type Definitions
AddOnionResult
Type:
Properties- object
Name | Type | Attributes | Description |
---|---|---|---|
serviceId | string | The hidden service url without .onion. | |
privateKey | string | <optional> | The generated private key. |
- Source
AuthChallengeResult
Type:
Properties- object
Name | Type | Description |
---|---|---|
hash | string | The server hash. |
nonce | string | The server nonce. |
- Source
GetConfigResult
Type:
Properties- object
Name | Type | Description |
---|---|---|
conf | Array.<string> |
- Source
ProtocolInfoResult
Type:
Properties- object
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protocol | string | ||||||||||
auth | object | Properties
| |||||||||
version | object | Properties
|
- Source