Skip to content

Instantly share code, notes, and snippets.

@msach22
Created July 12, 2018 22:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msach22/26b2bc1927a589c809b63a8729125bc4 to your computer and use it in GitHub Desktop.
Save msach22/26b2bc1927a589c809b63a8729125bc4 to your computer and use it in GitHub Desktop.
Run the following block of code to test your environment
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.");
}
});
@kaspesla
Copy link

Hey preview.opentok.com no longer exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment