I am trying to connect to the server on port 77 using this code:
<script> alert("start!"); var exampleSocket = new WebSocket("ws://192.168.1.190/77"); alert(exampleSocket.readyState); </script> It turns out first start, and then 0. I try this:
<script> alert("start!"); var exampleSocket = new WebSocket("ws://192.168.1.190:77"); alert(exampleSocket.readyState); </script> It turns out only start. Simultaneously with the execution of the script, I look at the server output, there are no connection reports, the server part is exactly working.
setTimeout(function(){alert(exampleSocket.readyState) },2000)- Dmytryk