Websocket error behind firewall / proxy of some certain networks

0
0

Hi!
Websocket fails in some networks , I guess because some rules / protocols behind firewall / proxy:
WebSocket waiting for ready state = 1
Browser can’t establish ws connection.

From this point, app doesn’t continue

Maybe a missing validation about ws protocol attempts, and then switch ws protocol to false, or something like that
Or a better approach like WebSocketMaxAttempts property in json configuration file (default.json)

See attached image
Thanks in advance!

Attachment
  • You must to post comments
0
0

Hi! Sadly it doesn’t works. Tested with 1.4.22
But works if I set in default.json : “enableWebSocket”: false
Maybe something doesn’t fall back to http protocol?
Client and server support websocket, but some strange in the middle of proxy / firewall could still be failing
See attached image (browser console)
Thanks in advance!

Attachment
  • You must to post comments
0
0

Hi Sergio,

Wisej is supposed to fall back from websockets to http if the server (or client) does not support websocket or the connection is closed by the server.
We added some extra code to Wisej to eventually cover the situation you have observed.

I will send you a test build to verify that the issue with your proxy server is resolved.

Best regards
Frank

  • Ser Gar
    Hi! Sadly it doesn’t works. Tested with 1.4.22 But works if I set in default.json : “enableWebSocket”: false Maybe something doesn’t fall back to http protocol? Thanks in advance!
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.