TLSSocket

constructor(socket: Socket, options: TLSSocketOptions = definedExternally)(source)
constructor(socket: Duplex, options: TLSSocketOptions = definedExternally)(source)

Construct a new tls.TLSSocket object from an existing TCP socket.