Problem with websocket Qt and javascript

Asked

Viewed 35 times

0

Hello I have a webview component, in Qt, in it I load an html page.. In linux works perfectly... Already in windows the websocket is stopping and starting and can not start... Does anyone have any idea how to solve this problem?

Edit: Rescussing this topic to see if I can solve it. No javascript conecto ao wss com

    var websocket;
    function iniciaWebsocket(){
    websocket = new WebSocket(url);
    websocket.onopen = function(evt) { $("#view_panel").append("aberto"); };
    websocket.onclose = function(evt) { $("#view_panel").append("fechado"); iniciaWebsocket(); }; // reinicio
    websocket.onmessage = function(evt)
    {
      //aqui captura a mensagem
    }
    websocket.onerror = function(evt) {}
    }

And that’s it... It’s not working and it only happens in windows... Linux works perfectly. Is there really no way to solve Poxa? My software that depends 100% of this will not be able to work in windows just because of this detail?

  • 2

    You can join the code you are using and/or more information to describe the problem?

  • Worse than I have no idea how to give more information... Because websocket is something automatic, it has a key, which is generated automatically by the site..

  • The problem must be some javascript compatibility in the webview of Qt, for windows.. Because in Qt for linux works well

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.