Answer the question
In order to leave comments, you need to log in
How to get data through socket.io over HTTPS?
Good day, citizens. There is a resource from which I receive data through the socket:
var socket = io.connect("http://socket.coincap.io");
socket.on("trades", function(tradeMsg){
// обработка данных
});
Answer the question
In order to leave comments, you need to log in
If the server is not accessible via https then there is no other way to directly access it from the https client. Simply because the browser by default blocks non-secure connections.
So there are only two options:
1. Ask the author of the server to provide access via wss
2. Make your own proxy that will forward wss <-> ws
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question