tls_server.close()

server.close([callback]) Stops the server from accepting new connections. This function is asynchronous, the server is finally closed when the server emits a 'close' event. Optionally, you can pass a callback to listen for the 'close' event.

tls_server.address()

server.address() Returns the bound address, the address family name, and port of the server as reported by the operating system. See net.Server.address() for more information.

tls_server.addContext()

server.addContext(hostname, context) Add secure context that will be used if the client request's SNI hostname matches the supplied hostname (wildcards can be used). context can contain key, cert, ca or any other properties from tls.createSecureContext() options argument.

tlsSocket.setMaxSendFragment()

tlsSocket.setMaxSendFragment(size) Set maximum TLS fragment size (default and maximum value is: 16384, minimum is: 512). Returns true on success, false otherwise. Smaller fragment sizes decrease the buffering latency on the client: larger fragments are buffered by the TLS layer until the entire fragment is received and its integrity is verified; large fragments can span multiple roundtrips and their processing can be delayed due to packet loss or reordering. However, smaller fragments add extr

tlsSocket.renegotiate()

tlsSocket.renegotiate(options, callback) Initiate TLS renegotiation process. The options object may contain the following fields: rejectUnauthorized, requestCert. (See [tls.createServer ()][] for details.) callback(err) will be executed with null as err, once the renegotiation is successfully completed. NOTE: Can be used to request peer's certificate after the secure connection has been established. ANOTHER NOTE: When running as the server, socket will be destroyed with an error after handsha

tlsSocket.remotePort

tlsSocket.remotePort The numeric representation of the remote port. For example, 443.

tlsSocket.remoteFamily

tlsSocket.remoteFamily The string representation of the remote IP family. 'IPv4' or 'IPv6'.

tlsSocket.remoteAddress

tlsSocket.remoteAddress The string representation of the remote IP address. For example, '74.125.127.100' or '2001:4860:a005::68'.

tlsSocket.localPort

tlsSocket.localPort The numeric representation of the local port.

tlsSocket.localAddress

tlsSocket.localAddress The string representation of the local IP address.