CommonConnectionOptions

@native @JSType trait CommonConnectionOptions extends StObject
Companion
object
trait StObject
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

var ALPNProtocols: UndefOr[Array[String | Uint8Array] | Uint8Array]

An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their priority.)

An array of strings or a Buffer naming possible ALPN protocols. (Protocols should be ordered by their priority.)

var SNICallback: UndefOr[Function2[String, Function2[Error | Null, SecureContext, Unit], Unit]]

SNICallback(servername, cb) <Function> A function that will be called if the client supports SNI TLS extension. Two arguments will be passed when called: servername and cb. SNICallback should invoke cb(null, ctx), where ctx is a SecureContext instance. (tls.createSecureContext(...) can be used to get a proper SecureContext.) If SNICallback wasn't provided the default callback with high-level API will be used (see below).

SNICallback(servername, cb) <Function> A function that will be called if the client supports SNI TLS extension. Two arguments will be passed when called: servername and cb. SNICallback should invoke cb(null, ctx), where ctx is a SecureContext instance. (tls.createSecureContext(...) can be used to get a proper SecureContext.) If SNICallback wasn't provided the default callback with high-level API will be used (see below).

var enableTrace: UndefOr[Boolean]

When enabled, TLS packet trace information is written to stderr. This can be used to debug TLS connection problems.

When enabled, TLS packet trace information is written to stderr. This can be used to debug TLS connection problems.

var rejectUnauthorized: UndefOr[Boolean]

If true the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true.

If true the server will reject any connection which is not authorized with the list of supplied CAs. This option only has an effect if requestCert is true.

var requestCert: UndefOr[Boolean]

If true the server will request a certificate from clients that connect and attempt to verify that certificate. Defaults to false.

If true the server will request a certificate from clients that connect and attempt to verify that certificate. Defaults to false.

An optional TLS context object from tls.createSecureContext()

An optional TLS context object from tls.createSecureContext()