Add host and port to TlsOptions

This commit is contained in:
Rogier Schouten
2015-12-17 11:04:10 +01:00
parent 78ba6e4154
commit 725408f135
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -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