Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

197
Visualizações
Knows anyone this Problem with WEB-Socket on IOS-Client

I have a strange problem with an SSL websocket connection that only occurs on iOS. Under Windows it runs completely problem-free with all browsers. I have this simple function to send text frames to the server:

    ws.onopen = function () {

        // Some code
        
        setInterval(function(){
            dbg("State:",ws.readyState,"-", ws.bufferedAmount);
            if(ws.bufferedAmount == 0){
                var data=getSendQ();
                if (data.length!=0) {
                    data+=DUMMYSENDER; // 3 Spaces as Dummy
                    ws.send(data);
                }
            }
        },OUTQTICK); // 50ms

        // some code

        putSendQ(
            _cmd.REQ_LOGIN + _user.name + TR + _user.passwordEncoded + TR + REMOTEHOST + TR + "87228732" + TR + VV
        );

        // some code
    };

Ultimately, sending data on a journey is not rocket science.

The socket handshake is carried out correctly, but only 2 of the 102 bytes of the login data are sent. Sometimes 4 or 6. Very rarely all data is sent and the login works. Once the login has worked, the connection is stable and there are no more problems with data exchange. I've tried everything. Among other things, I tried to replace the text frames with binary frames. The result is identical. Usually only the first 2 bytes of the frame are sent.

The crazy thing is: the moment I close the window, the rest of the data is sent. At that moment, a correct close frame is also sent. The problem occurred with iOS 15. I currently have iOS 15.2

Does anyone know the problem and may have already solved it? I'm still going crazy. I've been looking for a solution for three days and can't get any further.

I am grateful for every tip, no matter how small.

Greetings from the rainy North Sea coast Joachim

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda