EasyWebsocket icon indicating copy to clipboard operation
EasyWebsocket copied to clipboard

Problem with http secure

Open osferfer opened this issue 13 years ago • 3 comments

In file "easywebsocket.min.js" it has been configured the websocket server

->EasyWebSocket.serverUrl = "http://88.191.76.230:8950";

but if your aplication it´s running in a secure context (https) , socket.io can´t establish a connection.

osferfer avatar Nov 15 '11 10:11 osferfer

hmm ok. first thanks for the report. i dont understand the matter. i have a fews question

  • can you explain why to me ?
  • does this require me to have an https certificate ?

ps: you can override this value before you start using easywebsocket, dunno if it helps

jeromeetienne avatar Nov 15 '11 10:11 jeromeetienne

Ok, Ill try to explain it as good as posible.

My aplication is running by https so when a new EasyWebSocket is created, the javascript code in file easywebsocket make http request :

GET https://88.191.76.230:8950/socket.io/1/?t=1321357125228&jsonp=0

And the server doesnt send response.

Thanks .

osferfer avatar Nov 15 '11 11:11 osferfer

yep this server doesnt support https. https is hard to deploy and it is costy to get a certificate. you can deploy https on your own server tho.

jeromeetienne avatar Nov 15 '11 11:11 jeromeetienne