Note that there are some explanatory texts on larger screens.

plurals
  1. POWebsocket handshake unable to make connection
    text
    copied!<p>The request fetching in on wensocket server is :</p> <pre><code>Upgrade: websocket Connection: Upgrade Host: 10.1.5.20:5555 Origin: http://localhost:8080 Sec-WebSocket-Protocol: sip Pragma: no-cache Cache-Control: no-cache Sec-WebSocket-Key: T3jkd1s0pRceQbgdTLoaiQ== Sec-WebSocket-Version: 13 Sec-WebSocket-Extensions: x-webkit-deflate-frame </code></pre> <p>The response I am trying to send back for the handshake is :</p> <pre><code>HTTP/1.1 101 WebSocket Protocol Handshake Upgrade: WebSocket Connection: Upgrade Sec-WebSocket-Origin: http://localhost:8080 Sec-WebSocket-Location: ws://10.1.5.20:5555/ </code></pre> <p>But the error I receive is :</p> <pre><code>**Exception in thread "main" java.io.IOException: Handshake failed at websocket4j.AbstractWebSocket.&lt;init&gt;(AbstractWebSocket.java:123) at websocket4j.server.WebSocket.&lt;init&gt;(WebSocket.java:73) at websocket4j.server.WebServerSocket.accept(WebServerSocket.java:119) at websocket4j.examples.EchoServer.main(EchoServer.java:51) Caused by: java.io.IOException: End of stream at websocket4j.AbstractWebSocket.readBytes(AbstractWebSocket.java:230) at websocket4j.server.WebSocket.handshake(WebSocket.java:203) at websocket4j.AbstractWebSocket$HandshakeRunner.run(AbstractWebSocket.java:79) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.lang.Thread.run(Unknown Source)** </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload