Interfaces
Properties
Methods
SM connect(options: tls.TlsOptions, secureConnectionListener: module:tls.ConnectSecureConnectionListenerCallback) tls.ClearTextStream
Parameters:
Name | Type | Argument |
---|---|---|
options |
tls.TlsOptions | |
secureConnectionListener |
module:tls.ConnectSecureConnectionListenerCallback |
<optional> |
SM connect(port: number, host: string, options: tls.ConnectionOptions, secureConnectListener: module:tls.ConnectSecureConnectListenerCallback) tls.ClearTextStream
Parameters:
Name | Type | Argument |
---|---|---|
port |
number | |
host |
string |
<optional> |
options |
tls.ConnectionOptions |
<optional> |
secureConnectListener |
module:tls.ConnectSecureConnectListenerCallback |
<optional> |
SM connect(port: number, options: tls.ConnectionOptions, secureConnectListener: module:tls.ConnectSecureConnectListenerCallback) tls.ClearTextStream
Parameters:
Name | Type | Argument |
---|---|---|
port |
number | |
options |
tls.ConnectionOptions |
<optional> |
secureConnectListener |
module:tls.ConnectSecureConnectListenerCallback |
<optional> |
SM createSecurePair(credentials: crypto.Credentials, isServer: boolean, requestCert: boolean, rejectUnauthorized: boolean) tls.SecurePair
Parameters:
Name | Type | Argument |
---|---|---|
credentials |
crypto.Credentials |
<optional> |
isServer |
boolean |
<optional> |
requestCert |
boolean |
<optional> |
rejectUnauthorized |
boolean |
<optional> |
SM createServer(options: tls.TlsOptions, secureConnectionListener: module:tls.CreateServerSecureConnectionListenerCallback) tls.Server
Parameters:
Name | Type | Argument |
---|---|---|
options |
tls.TlsOptions | |
secureConnectionListener |
module:tls.CreateServerSecureConnectionListenerCallback |
<optional> |