mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-25 12:00:38 +08:00
Add host and port to TlsOptions
This commit is contained in:
1 parent
78ba6e4154
commit
725408f135
2 files changed
+9
No files matched your search
@@ -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