mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add host and port to TlsOptions
This commit is contained in:
@@ -198,6 +198,13 @@ var ctx: tls.SecureContext = tls.createSecureContext({
|
||||
});
|
||||
var blah = ctx.context;
|
||||
|
||||
var tlsOpts: tls.TlsOptions = {
|
||||
host: "127.0.0.1",
|
||||
port: 55
|
||||
};
|
||||
var tlsSocket = tls.connect(tlsOpts);
|
||||
|
||||
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
// Make sure .listen() and .close() retuern a Server instance
|
||||
|
||||
Reference in New Issue
Block a user