Created
July 12, 2018 22:05
-
-
Save msach22/032d8f2bb480d7ceb638842d522609ee to your computer and use it in GitHub Desktop.
Run the following code to check 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
require "net/https" | |
begin | |
uri = URI('https://preview.opentok.com/tls-check.json') | |
res = Net::HTTP.get(uri) | |
puts 'Connection successfully established with your current TLS configuration, no further action required.' | |
rescue Errno::ECONNRESET => e | |
puts 'Failed to connect to OpenTok, please check your system and upgrade your environment as needed.' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment