- Source:
Methods
-
<static> ADD_ONION(ports [, options])
-
Parameters:
Name Type Argument Description portsarray Array containing optional virtualPort (defaults to 80) and target ip:port string optionsobject <optional>
Properties
Name Type Argument Default Description clientNamestring <optional>
Client auth identifier clientBlobstring <optional>
Arbitrary auth data keyTypestring <optional>
"NEW" Create a new key or use RSA1024 keyBlobstring <optional>
"BEST" Key type to create or serialized discardPrivateKeyboolean <optional>
false Do not return key detachboolean <optional>
false Keep service running after close basicAuthboolean <optional>
false Use client name and blob auth nonAnonymousboolean <optional>
false Non-anononymous mode - Source:
-
<static> ATTACHSTREAM(streamId, options)
-
Parameters:
Name Type Description streamIdstring optionsobject Properties
Name Type Description circuitIdstring hopNumberstring | null - Source:
Returns:
- Type
- string
-
<static> AUTHCHALLENGE( [nonce] [, type])
-
Parameters:
Name Type Argument Default Description noncestring <optional>
"" Client nonce for challenge typestring <optional>
"SAFECOOKIE" The type of challenge - Source:
Returns:
- Type
- string
-
<static> AUTHENTICATE( [token])
-
Parameters:
Name Type Argument Default Description tokenstring <optional>
"" The auth token - Source:
Returns:
- Type
- string
-
<static> CLOSECIRCUIT(circuitId [, options])
-
Parameters:
Name Type Argument Description circuitIdstring optionsobject <optional>
Properties
Name Type Argument Default Description ifUnusedboolean <optional>
false - Source:
Returns:
- Type
- string
-
<static> CLOSESTREAM(streamId [, reason])
-
Parameters:
Name Type Argument Default Description streamIdstring reasonnumber <optional>
1 - Source:
Returns:
- Type
- string
-
<static> DEL_ONION(serviceId)
-
Parameters:
Name Type Description serviceIdstring - Source:
Returns:
- Type
- string
-
<static> DROPGUARDS()
-
- Source:
Returns:
- Type
- string
-
<static> EXTENDCIRCUIT(circuitId)
-
Parameters:
Name Type Description circuitIdstring - Source:
Returns:
- Type
- string
-
<static> GETCONF(keyword)
-
Parameters:
Name Type Description keywordstring - Source:
Returns:
- Type
- string
-
<static> GETINFO(keyword)
-
Parameters:
Name Type Description keywordstring - Source:
Returns:
- Type
- string
-
<static> HSFETCH(serviceId [, serverLongName])
-
Parameters:
Name Type Argument Description serviceIdstring serverLongNamestring <optional>
- Source:
Returns:
- Type
- string
-
<static> HSPOST(descriptor [, serverLongName])
-
Parameters:
Name Type Argument Description descriptorstring serverLongNamestring <optional>
- Source:
Returns:
- Type
- string
-
<static> LOADCONF(configText)
-
Parameters:
Name Type Description configTextstring - Source:
Returns:
- Type
- string
-
<static> MAPADDRESS(targetAddr, replaceAddr)
-
Parameters:
Name Type Description targetAddrstring replaceAddrstring - Source:
Returns:
- Type
- string
-
<static> POSTDESCRIPTOR(descriptor, options)
-
Parameters:
Name Type Description descriptorobject optionsobject Properties
Name Type Argument Default Description purposestring <optional>
"general" cacheboolean <optional>
true - Source:
Returns:
- Type
- string
-
<static> PROTOCOLINFO()
-
- Source:
Returns:
- Type
- string
-
<static> QUIT()
-
- Source:
Returns:
- Type
- string
-
<static> REDIRECTSTREAM(streamId, address [, port])
-
Parameters:
Name Type Argument Description streamIdstring addressstring portnumber <optional>
- Source:
Returns:
- Type
- string
-
<static> RESETCONF(keyword)
-
Parameters:
Name Type Description keywordstring - Source:
Returns:
- Type
- string
-
<static> RESOLVE(address [, reverse])
-
Parameters:
Name Type Argument Default Description addressstring reverseboolean <optional>
false - Source:
Returns:
- Type
- string
-
<static> SAVECONF()
-
- Source:
Returns:
- Type
- string
-
<static> SETCIRCUITPURPOSE(circuitId, purpose)
-
Parameters:
Name Type Description circuitIdstring purposestring - Source:
-
<static> SETCONF(keyword, value)
-
Parameters:
Name Type Description keywordstring valuestring - Source:
Returns:
- Type
- string
-
<static> SETEVENTS(events)
-
Parameters:
Name Type Description eventsArray.<string> - Source:
Returns:
- Type
- string
-
<static> SIGNAL()
-
- Source:
Returns:
- Type
- string
-
<static> TAKEOWNERSHIP()
-
- Source:
Returns:
- Type
- string
-
<inner> _addOnionPortsStringToCommand(ports, options, command)
-
Parameters:
Name Type Description portsarray optionsobject commandarray - Source:
-
<inner> _addOnionPortsToCommand(ports, options, command)
-
Parameters:
Name Type Description portsarray optionsobject commandarray - Source: