-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f7b198a
commit 5ae1255
Showing
5 changed files
with
34 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -253,12 +253,15 @@ event is emitted. | |
- `transport` - An `ITransport` instance, if you need to specify a [custom transport](#custom-transports). | ||
If omitted, defaults to a `WebSocketCMTransport` instance for `SteamClient` platform types, and a | ||
`WebApiTransport` instance for all other platform types. In all likelihood, you don't need to use this. | ||
- `localAddress` - A string containing the local IP address you want to use. For example, `11.22.33.44` | ||
- `httpProxy` - A string containing a URI for an HTTP proxy. For example, `http://user:[email protected]:80` | ||
- `socksProxy` - A string containing a URI for a SOCKS proxy. For example, `socks5://user:[email protected]:1080` | ||
- `agent` - An `https.Agent` instance to use for requests. If omitted, a new `https.Agent` will be created internally. | ||
|
||
You can only use one of `httpProxy`, `socksProxy` or `agent` at the same time. If you try to use more than one of them, | ||
an Error will be thrown. | ||
You can only use one of `localAddress`, `httpProxy`, `socksProxy` or `agent` at the same time. If you try to use more | ||
than one of them, an Error will be thrown. | ||
|
||
If you specify a custom transport, then you are responsible for handling proxy or agent usage in your transport. | ||
|
||
Constructs a new `LoginSession` instance. Example usage: | ||
|
||
|
@@ -569,12 +572,15 @@ If this is a `string`, it must be either hex- or base64-encoded. | |
- `options` - An object with zero or more of these properties: | ||
- `transport` - An `ITransport` instance, if you need to specify a [custom transport](#custom-transports). | ||
If omitted, defaults to a `WebApiTransport` instance. In all likelihood, you don't need to use this. | ||
- `localAddress` - A string containing the local IP address you want to use. For example, `11.22.33.44` | ||
- `httpProxy` - A string containing a URI for an HTTP proxy. For example, `http://user:[email protected]:80` | ||
- `socksProxy` A string containing a URI for a SOCKS proxy. For example, `socks5://user:[email protected]:1080` | ||
- `agent` - An `https.Agent` instance to use for requests. If omitted, a new `https.Agent` will be created internally. | ||
|
||
You can only use one of `httpProxy`, `socksProxy` or `agent` at the same time. If you try to use more than one of them, | ||
an Error will be thrown. | ||
You can only use one of `localAddress`, `httpProxy`, `socksProxy` or `agent` at the same time. If you try to use more | ||
than one of them, an Error will be thrown. | ||
|
||
If you specify a custom transport, then you are responsible for handling proxy or agent usage in your transport. | ||
|
||
Constructs a new `LoginApprover` instance. Example usage: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,17 +23,26 @@ export interface ConstructorOptions { | |
transport?: ITransport, | ||
|
||
/** | ||
* A string containing a URI for a SOCKS proxy. For example, `socks5://user:[email protected]:1080` | ||
* A string containing the local IP address you want to use. For example, '11.22.33.44'. | ||
* Cannot be used alongside `socksProxy`, `httpProxy`, or `agent`. | ||
*/ | ||
localAddress?: string, | ||
|
||
/** | ||
* A string containing a URI for a SOCKS proxy. For example, `socks5://user:[email protected]:1080`. | ||
* Cannot be used alongside `localAddress`, `httpProxy`, or `agent`. | ||
*/ | ||
socksProxy?: string, | ||
|
||
/** | ||
* A string containing a URI for an HTTP proxy. For example, `http://user:[email protected]:80` | ||
* A string containing a URI for an HTTP proxy. For example, `http://user:[email protected]:80`. | ||
* Cannot be used alongside `localAddress`, `socksProxy`, or `agent`. | ||
*/ | ||
httpProxy?: string | ||
httpProxy?: string, | ||
|
||
/** | ||
* An `https.Agent` instance to use for requests. If omitted, a new `https.Agent` will be created internally. | ||
* Cannot be used alongside `localAddress`, `socksProxy`, or `httpProxy`. | ||
*/ | ||
agent?: HTTPS.Agent | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters