Initializes a new instance of that class.
The type.
Stores the wrapped socket.
Stores the type.
Try compress data or not.
The path of the working directory.
A custom function that transformes data before it is send or after it has been received.
Gets or sets the (string) encoding to use.
A custom function that transforms the handshake public key before it is send or after it has been received.
Defines the maximum size of a package.
Stores the current password.
Defines a custom logic to generate a password (for the connection).
The default buffer size for reading a stream.
The RSA key size.
Gets the symetric encryption algorithm.
Gets the wrapped socket.
The wrapped socket.
Gets the socket type.
Disposes the socket.
Sends the connection.
The promise.
Generates a password based on the 'passwordGenerator' property.
Returns the working directory.
The working directory.
Returns the (string) encoding that should be used by that socket.
The encoding.
Gets the maximum size for a package.
The maximum package size.
Gets the size for a RSA key.
The RSA key size.
Returns the buffer size for reading streams.
The buffer size.
Makes a CLIENT handshake.
Makes a handshake if needed.
Makes a SERVER handshake.
Reads data from the remote.
Reads data from remote and writes it to a file on this machine.
The path to the target file.
The promise.
Reads data as JSON object.
The promise.
Reads data from remote and writes it to a stream on this machine.
The stream pointer of the target.
The promise.
Reads data as string.
The promise.
Sets up the events.
Tries to compress data.
The data to compress.
The promise.
Reads data from the remote.
Sends the data of a file to the remote.
The path of the file to send.
The promise.
Sends an object / value as JSON string.
The object to send.
The promise.
Sends the data of a stream to the remote.
The stream pointer from where to read.
The promise.
Generated using TypeDoc
A "simple" socket.