new HiddenSocket(context)
Wraps a net.Socket in a stream.Duplex that passes data through the supplied context's tor SOCKSv5 proxy.
Parameters:
Name | Type | Description |
---|---|---|
context | module:bulb/context~TorContext |
- Source
Methods
connect(options)
Connects the underlying socket to the destination through a tor SOCKSv5 proxy.
Parameters:
Name | Type | Description |
---|---|---|
options | module:bulb/network~HiddenSocket~ConnectOptions | Destination connection address |
- Source
Type Definitions
ConnectOptions
Type:
Properties- object
Name | Type | Description |
---|---|---|
host | string | Address (including onion URLs) to connect to. |
port | number | Port to connect to. |
- Source