Constructor
new Proxy(options)
Manages proxy for tunneling hosts to connect
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | Properties
|
Methods
clean()
Cleans up waiting and open connections
pop(socketHandler)
Returns a connected socket off the list to process a request and places it back when the handler is finished
Parameters:
Name | Type | Description |
---|---|---|
socketHandler | Proxy~socketHandler |
push(socket)
Processes incoming connections from tunnel client
Parameters:
Name | Type | Description |
---|---|---|
socket | net. | Raw socket from an incoming connection |
Type Definitions
socketHandler(socket)
Parameters:
Name | Type | Description |
---|---|---|
socket | net. | The socket back to the client |
| Proxy~socketHandlerCallback |
socketHandlerCallback(error)
Parameters:
Name | Type | Description |
---|---|---|
error | Error | | Possible error during handling |