Methods
(static) ADD_ONION(ports, optionsopt)
Parameters:
Name | Type | Attributes | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ports | array | Array containing optional virtualPort (defaults to 80) and target ip:port string | ||||||||||||||||||||||||||||||||||||||||||||||
options | object | <optional> | Properties
|
- Source
(static) ATTACHSTREAM(streamId, options) → {string}
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
streamId | string | ||||||||||
options | object | Properties
|
- Source
Returns:
- Type:
- string
(static) AUTHCHALLENGE(nonceopt, typeopt) → {string}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
nonce | string | <optional> | "" | Client nonce for challenge |
type | string | <optional> | "SAFECOOKIE" | The type of challenge |
- Source
Returns:
- Type:
- string
(static) AUTHENTICATE(tokenopt) → {string}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
token | string | <optional> | "" | The auth token |
- Source
Returns:
- Type:
- string
(static) CLOSECIRCUIT(circuitId, optionsopt) → {string}
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
circuitId | string | ||||||||||||
options | object | <optional> | Properties
|
- Source
Returns:
- Type:
- string
(static) CLOSESTREAM(streamId, reasonopt) → {string}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
streamId | string | |||
reason | number | <optional> | 1 |
- Source
Returns:
- Type:
- string
(static) DEL_ONION(serviceId) → {string}
Parameters:
Name | Type | Description |
---|---|---|
serviceId | string |
- Source
Returns:
- Type:
- string
(static) DROPGUARDS() → {string}
- Source
Returns:
- Type:
- string
(static) EXTENDCIRCUIT(circuitId) → {string}
Parameters:
Name | Type | Description |
---|---|---|
circuitId | string |
- Source
Returns:
- Type:
- string
(static) GETCONF(keyword) → {string}
Parameters:
Name | Type | Description |
---|---|---|
keyword | string |
- Source
Returns:
- Type:
- string
(static) GETINFO(keyword) → {string}
Parameters:
Name | Type | Description |
---|---|---|
keyword | string |
- Source
Returns:
- Type:
- string
(static) HSFETCH(serviceId, serverLongNameopt) → {string}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
serviceId | string | ||
serverLongName | string | <optional> |
- Source
Returns:
- Type:
- string
(static) HSPOST(descriptor, serverLongNameopt) → {string}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
descriptor | string | ||
serverLongName | string | <optional> |
- Source
Returns:
- Type:
- string
(static) LOADCONF(configText) → {string}
Parameters:
Name | Type | Description |
---|---|---|
configText | string |
- Source
Returns:
- Type:
- string
(static) MAPADDRESS(targetAddr, replaceAddr) → {string}
Parameters:
Name | Type | Description |
---|---|---|
targetAddr | string | |
replaceAddr | string |
- Source
Returns:
- Type:
- string
(static) POSTDESCRIPTOR(descriptor, options) → {string}
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
descriptor | object | ||||||||||||||||
options | object | Properties
|
- Source
Returns:
- Type:
- string
(static) PROTOCOLINFO() → {string}
- Source
Returns:
- Type:
- string
(static) QUIT() → {string}
- Source
Returns:
- Type:
- string
(static) REDIRECTSTREAM(streamId, address, portopt) → {string}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
streamId | string | ||
address | string | ||
port | number | <optional> |
- Source
Returns:
- Type:
- string
(static) RESETCONF(keyword) → {string}
Parameters:
Name | Type | Description |
---|---|---|
keyword | string |
- Source
Returns:
- Type:
- string
(static) RESOLVE(address, reverseopt) → {string}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
address | string | |||
reverse | boolean | <optional> | false |
- Source
Returns:
- Type:
- string
(static) SAVECONF() → {string}
- Source
Returns:
- Type:
- string
(static) SETCIRCUITPURPOSE(circuitId, purpose)
Parameters:
Name | Type | Description |
---|---|---|
circuitId | string | |
purpose | string |
- Source
(static) SETCONF(keyword, value) → {string}
Parameters:
Name | Type | Description |
---|---|---|
keyword | string | |
value | string |
- Source
Returns:
- Type:
- string
(static) SETEVENTS(events) → {string}
Parameters:
Name | Type | Description |
---|---|---|
events | Array.<string> |
- Source
Returns:
- Type:
- string
(static) SIGNAL() → {string}
- Source
Returns:
- Type:
- string
(static) TAKEOWNERSHIP() → {string}
- Source
Returns:
- Type:
- string
(inner) _addOnionPortsStringToCommand(ports, options, command)
Parameters:
Name | Type | Description |
---|---|---|
ports | array | |
options | object | |
command | array |
- Source
(inner) _addOnionPortsToCommand(ports, options, command)
Parameters:
Name | Type | Description |
---|---|---|
ports | array | |
options | object | |
command | array |
- Source