Skip to main content Link Search Menu Expand Document (external link)

The Proxy Factory Interface

The proxy factory interface creates proxy objects that are initialized correctly.

There is only one proxy factory and it can always be found at jancy.proxyFactory.

Methods

proxyFactory.createSync(data)

  • data (object)
    • name (string)
    • host (string)
    • port (number)
    • username (string) optional
    • password (string) optional
    • isPassThrough (boolean) optional

Returns a properly initialized proxy object.

If isPassThrough is true, then all the proxy information will be ignored when the proxy is selected into a partition, and the connection will be as if there was no proxy in use. Useful for creating a proxy object that uses the system connection.