bulb/replies~ ControlReply

new ControlReply(parsedReplyopt)

Wraps a parsed reply forom the control port.

Parameters:
NameTypeAttributesDescription
parsedReplyobject<optional>

Parsed reply object.

Methods

(static) ADD_ONION(output) → {AddOnionResult}

Parses the response from the ADD_ONION module:bulb/replies~ControlReply~AddOnionResult

Parameters:
NameTypeDescription
outputArray.<string>
Returns:
Type: 
AddOnionResult

(static) AUTHCHALLENGE(output) → {module:bulb/replies~ControlReply~AuthChallengeResult}

Parses the reply from the AUTHCHALLENGE module:bulb/commands~ControlCommand.

Parameters:
NameTypeDescription
outputArray.<string>

(static) GETCONF(output) → {module:bulb/replies~ControlReply~GetConfigResult}

Parses the result of the GETCONF module:bulb/commands~ControlCommand.

Parameters:
NameTypeDescription
outputArray.<string>

(static) GETINFO(output) → {module:bulb/replies~ControlReply~GetInfoResult}

Parses the result of the GETINFO module:bulb/commands~ControlCommand.

Parameters:
NameTypeDescription
outputArray.<string>
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:
NameTypeDescription
outputArray.<string>

Type Definitions

AddOnionResult

Type:
  • object
Properties
NameTypeAttributesDescription
serviceIdstring

The hidden service url without .onion.

privateKeystring<optional>

The generated private key.

AuthChallengeResult

Type:
  • object
Properties
NameTypeDescription
hashstring

The server hash.

noncestring

The server nonce.

GetConfigResult

Type:
  • object
Properties
NameTypeDescription
confArray.<string>

ProtocolInfoResult

Type:
  • object
Properties
NameTypeDescription
protocolstring
authobject
Properties
NameTypeDescription
methodsArray.<string>
cookieFilestring
versionobject
Properties
NameTypeDescription
torstring