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

187
Visualizações
Websocket javascript opening handshake timed out

I am making use of websocket to connect to a monitor on LAN. I am using the following code to connect to the ip 192.168.0.1 on the port 5000:

const socket = new WebSocket("ws://192.168.0.1:5000", ['soap', 'xmpp']);

This is an image of the packets sends and received from 192.168.0.1

wireshark connection

In the first two we have a request sent and the ACK for that request, but the WebSocket is failing to read the ACK and thus results in a timeout error after 4 minutes(as shown in the last three lines).

WebSocket connection to 'ws://192.168.0.1:5000/' failed: WebSocket opening handshake timed out

I have tried the HW-group application and it worked fine. Here is an image of the packets sent and received from the application:

enter image description here

(The first three lines are for disconnecting and the last three are connecting)

I have no idea why my WebSocket is resulting in a timeout error and the socket from the other app is connecting normally. If anyone have any input on this situation please let me know.

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