Created
July 12, 2018 22:04
-
-
Save msach22/26b2bc1927a589c809b63a8729125bc4 to your computer and use it in GitHub Desktop.
Run the following block of code to test your environment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require("https"); | |
var req = https.request({ | |
host: "preview.opentok.com", | |
port: "443", | |
path: "tls-check.json", | |
method: "GET", | |
}, function (res) { | |
res.on("data", function (data) { | |
console.log("Connection successfully established with your current TLS configuration, no further action required."); | |
}); | |
}); | |
req.end(); | |
req.on("error", function(err) { | |
if (err.code == "ECONNRESET") { | |
console.log("Failed to connect to OpenTok, please check your system and upgrade your environment as needed."); | |
} else { | |
console.log("Unknown error talking to OpenTok, please try again later."); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey preview.opentok.com no longer exists.